modern-django-starter/apps/core/urls.py
amitrana01 5845f9ee13 Add health check endpoint for debugging
- Add /health/ endpoint that returns JSON without templates
- Shows Django settings, file existence, and configuration
- Use this to test if Django is running: https://dt.netcoptech.com/health/
- Helps diagnose if issue is templates, static files, or server config
2025-09-11 18:19:41 +05:30

12 lines
342 B
Python

from django.urls import path
from . import views
app_name = 'core'
urlpatterns = [
path('', views.home, name='home'),
path('health/', views.health_check, name='health_check'),
path('admin-dashboard/', views.admin_dashboard, name='admin_dashboard'),
path('staff-dashboard/', views.staff_dashboard, name='staff_dashboard'),
]