Files
project-managment/config/urls.py
T
sankalp 7196c4a299 feat(config): add generatedconfiguration skeleton
New Features
- Add ASGI entry point (`asgi.py`) with environment‑based settings.
- Create base and production settings modules (`base.py`, `production.py`) for shared and production‑specific configurations.
- Generate root `urls.py` with DRF JWT endpoints and included app URLs.
- Provide `wsgi.py` configured for production settings.

Enhancements
- Include `django-jazzmin`, `drf-spectacular`, and `django-cors-headers` defaults.
- Set up `django-tailwind-cli` and `django-htmx` middleware configurations.

Bug Fixes
- (none)
2026-05-27 23:18:13 +05:45

38 lines
1.2 KiB
Python

"""generated with djinit"""
from django.contrib import admin
from django.urls import path
from django.urls import include
from django.conf import settings
from drf_spectacular.views import (
SpectacularAPIView,
SpectacularSwaggerView,
)
from rest_framework_simplejwt.views import (
TokenObtainPairView,
TokenRefreshView,
TokenBlacklistView,
)
urlpatterns = [
path("admin/", admin.site.urls),
# JWT tokens
path("token/", TokenObtainPairView.as_view(), name="token_obtain_pair"),
path("token/refresh/", TokenRefreshView.as_view(), name="token_refresh"),
path("token/blacklist/", TokenBlacklistView.as_view(), name="token_blacklist"),
# App URLs
path("", include("apps.accounts.urls")),
path("", include("apps.projects.urls")),
path("", include("apps.finance.urls")),
path("", include("apps.kanban.urls")),
path("", include("apps.issues.urls")),
path("", include("apps.tickets.urls")),
path("", include("apps.activity.urls")),
]
# Don't show schema in production
if settings.DEBUG:
urlpatterns += [
path("schema/", SpectacularAPIView.as_view(), name="schema"),
path("docs/", SpectacularSwaggerView.as_view(url_name="schema")),
]