The updates for the customer dashboard cum accounts

This commit is contained in:
Vivek
2025-12-09 03:59:57 +05:30
parent 08a89a1212
commit 24355ecdf5
38 changed files with 1057 additions and 16 deletions

View File

@@ -104,3 +104,6 @@ AUTH_USER_MODEL = 'accounts.User'
LOGIN_URL = 'login'
LOGIN_REDIRECT_URL = 'dashboard'
LOGOUT_REDIRECT_URL = 'login'
# EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
# DEFAULT_FROM_EMAIL = 'no-reply@example.com'

View File

@@ -2,18 +2,17 @@ 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
from accounts.views import login_view
from accounts.views import logout_view
from accounts.customer_views import RegisterView
from accounts.customer_views import login_view, logout_view, customer_dashboard
from django.conf.urls.static import static
from django.conf import settings
urlpatterns = [
path('admin/', admin.site.urls),
# path('', auth_views.LoginView.as_view(template_name='accounts/login.html'), name='login'),
# path('logout/', auth_views.LogoutView.as_view(), name='logout'),
path("", login_view, name="login"),
path("logout/", logout_view, name="logout"),
path('dashboard/', dashboard, name='dashboard'),
path("register/", RegisterView.as_view(), name="register"),
path('dashboard/', customer_dashboard, name='customer_dashboard'),
path('master-data/', include('master_data.urls')),
path('events/', include('events.urls')),