This document provides documentation for the URL configuration in the Django project. Each section outlines the purpose and functionality of specific URL patterns.
Description: URL pattern for accessing the Django admin site.
# Admin site URL
path('admin/', admin.site.urls),
Description: URL pattern for user registration.
# User registration URL
path('register/', user_views.register, name='register'),
Description: URL pattern for staff registration.
# Staff registration URL
path('register/staff/', register_staff, name='register/staff'),
Description: URL pattern for manager registration.
# Manager registration URL
path('register/manager/', register_manager, name='register/manager'),
Description: URL pattern for custom login using a Class-based view.
# Custom login URL using Class-based view
path('login', CustomLoginView.as_view(template_name='users/login.html'), name='login'),
Description: URL pattern for user logout using built-in Django auth views.
# Logout URL using built-in Django auth views
path('logout/', auth_views.LogoutView.as_view(), name='logout'),
Description: URL patterns for social authentication.
# Social authentication URLs
path('auth/', include('social_django.urls', namespace='social')),
Description: URL patterns for Django built-in authentication.
# Django built-in authentication URLs
path('accounts/', include('django.contrib.auth.urls')),