Files
project-managment/apps/accounts/urls.py
T
sankalp 18acdde6e5 feat(apps): add role‑based CustomUser admin and ticketing system
- New Features
  * Introduce CustomUser with role field and admin integration
  * Add ProjectMembership model linking users to projects
  * Add Ticket model with status, type, creator, and project relationships
  * Register CustomUser and ProjectMembership in Django admin with list views
  * Add URLs and views for account management and ticket CRUD operations
- Enhancements
  * Provide pagination and filtering for ticket listings
  * Improve admin UI with role‑specific fieldsets
- Bug Fixes  * Remove obsolete serializers and placeholder files
2026-05-27 23:33:20 +05:45

20 lines
666 B
Python

from django.contrib.auth.views import LogoutView
from django.urls import path
from apps.accounts.views import (
CustomLoginView,
ProfileView,
RegisterView,
UserListView,
UserUpdateView,
)
urlpatterns = [
path("accounts/login/", CustomLoginView.as_view(), name="login"),
path("accounts/logout/", LogoutView.as_view(), name="logout"),
path("accounts/register/", RegisterView.as_view(), name="register"),
path("accounts/profile/", ProfileView.as_view(), name="profile"),
path("accounts/users/", UserListView.as_view(), name="user_list"),
path("accounts/users/<int:pk>/edit/", UserUpdateView.as_view(), name="user_edit"),
]