mirror of
https://github.com/thecyberlearn/modern-django-starter.git
synced 2026-08-18 14:12:55 +00:00
- 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
12 lines
342 B
Python
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'),
|
|
]
|