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
|
2025-12-17 22:05:13 +05:30
|
|
|
# from accounts.views import dashboard, login_view, logout_view, UserListView, UserCreateView, UserUpdateView, UserDeleteView
|
|
|
|
|
# from accounts.customer_views import RegisterView
|
|
|
|
|
# from accounts.customer_views import login_view, logout_view, customer_dashboard, customer_calendar
|
|
|
|
|
# from accounts.customer_views import customer_profile
|
|
|
|
|
from accounts import views
|
2025-12-19 19:35:38 +05:30
|
|
|
from mobile_api.views.user import WebRegisterView
|
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-12-17 22:05:13 +05:30
|
|
|
# path("", login_view, name="login"),
|
|
|
|
|
# path("logout/", logout_view, name="logout"),
|
|
|
|
|
# path("register/", RegisterView.as_view(), name="register"),
|
|
|
|
|
# path('dashboard/', customer_dashboard, name='customer_dashboard'),
|
|
|
|
|
# path('calendar/', customer_calendar, name='customer_calendar'),
|
|
|
|
|
# path('profile/', customer_profile, name='customer_profile'),
|
|
|
|
|
|
|
|
|
|
path('', views.login_view, name='login'),
|
2025-12-19 19:35:38 +05:30
|
|
|
path('register/', WebRegisterView.as_view(), name='register'),
|
2025-12-17 22:05:13 +05:30
|
|
|
path('logout/', views.logout_view, name='logout'),
|
|
|
|
|
path('dashboard/', views.dashboard, name='dashboard'),
|
|
|
|
|
path('users/', views.UserListView.as_view(), name='user_list'),
|
|
|
|
|
path('users/add/', views.UserCreateView.as_view(), name='user_add'),
|
|
|
|
|
path('users/<int:pk>/edit/', views.UserUpdateView.as_view(), name='user_edit'),
|
|
|
|
|
path('users/<int:pk>/delete/', views.UserDeleteView.as_view(), name='user_delete'),
|
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')),
|
2026-01-28 16:51:43 +05:30
|
|
|
path('bookings/', include('bookings.urls')),
|
2026-03-15 00:29:17 +05:30
|
|
|
path('partner/', include('partner.urls')),
|
|
|
|
|
path('banking/', include('banking_operations.urls')),
|
2025-12-17 22:05:13 +05:30
|
|
|
path('api/', include('mobile_api.urls')),
|
|
|
|
|
# path('web-api/', include('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)
|