"""
URL configuration for crypto_platform project.
"""
from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from django.contrib.auth import views as auth_views

urlpatterns = [
    # Admin
    path('admin/', admin.site.urls),
    
    # Accounts app
    path('', include('accounts.urls')),
    
    # Signals app
    path('signals/', include('signals.urls')),
    
    # Deposits app
    path('deposits/', include('deposits.urls')),
    
    # Wallet app
    path('wallet/', include('wallet.urls')),
    
    # Referrals app
    path('referrals/', include('referrals.urls')),
]

# Serve media files in development
if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
    urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
