2025-11-27 11:53:46 +05:30
|
|
|
from django.contrib import admin
|
|
|
|
|
from django.urls import path, include
|
|
|
|
|
from django.contrib.auth import views as auth_views
|
|
|
|
|
from accounts.views import dashboard
|
2025-12-09 03:59:57 +05:30
|
|
|
from accounts.customer_views import RegisterView
|
|
|
|
|
from accounts.customer_views import login_view, logout_view, customer_dashboard
|
2025-12-01 04:52:49 +05:30
|
|
|
from django.conf.urls.static import static
|
|
|
|
|
from django.conf import settings
|
2025-11-27 11:53:46 +05:30
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
|
path('admin/', admin.site.urls),
|
2025-11-28 16:03:23 +05:30
|
|
|
path("", login_view, name="login"),
|
|
|
|
|
path("logout/", logout_view, name="logout"),
|
2025-12-09 03:59:57 +05:30
|
|
|
path("register/", RegisterView.as_view(), name="register"),
|
|
|
|
|
path('dashboard/', customer_dashboard, name='customer_dashboard'),
|
2025-11-27 11:53:46 +05:30
|
|
|
|
|
|
|
|
path('master-data/', include('master_data.urls')),
|
|
|
|
|
path('events/', include('events.urls')),
|
|
|
|
|
path('accounts/', include('accounts.urls')),
|
2025-12-01 04:52:49 +05:30
|
|
|
path('api/', include('mobile_web_api.urls')),
|
2025-11-27 11:53:46 +05:30
|
|
|
]
|
2025-12-01 04:52:49 +05:30
|
|
|
|
|
|
|
|
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|