mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-03 00:12:16 +02:00
Add Django
This commit is contained in:
parent
a96c1b0d80
commit
c0a9596731
9 changed files with 267 additions and 1 deletions
23
src/registrar/config/urls.py
Normal file
23
src/registrar/config/urls.py
Normal file
|
@ -0,0 +1,23 @@
|
|||
"""URL Configuration
|
||||
|
||||
For more information see:
|
||||
https://docs.djangoproject.com/en/4.0/topics/http/urls/
|
||||
"""
|
||||
|
||||
from django.conf import settings
|
||||
from django.contrib import admin
|
||||
from django.urls import include, path
|
||||
|
||||
from registrar.views import health
|
||||
|
||||
urlpatterns = [
|
||||
path("admin/", admin.site.urls),
|
||||
path("health/", health.health)
|
||||
]
|
||||
|
||||
if settings.DEBUG:
|
||||
import debug_toolbar
|
||||
|
||||
urlpatterns = [
|
||||
path("__debug__/", include(debug_toolbar.urls)),
|
||||
] + urlpatterns
|
Loading…
Add table
Add a link
Reference in a new issue