kadenios/app/urls.py

29 lines
880 B
Python
Raw Normal View History

2020-12-19 18:01:35 +01:00
from django.conf import settings
2024-07-09 08:46:06 +02:00
from django.conf.urls.static import static
2020-11-19 17:26:07 +01:00
from django.contrib import admin
2020-12-19 18:01:35 +01:00
from django.urls import include, path
2020-11-19 17:26:07 +01:00
2020-12-20 12:22:53 +01:00
from .views import HomeView
2020-11-19 17:26:07 +01:00
urlpatterns = [
2020-12-20 12:22:53 +01:00
path("", HomeView.as_view(), name="kadenios"),
2020-11-20 15:06:56 +01:00
path("elections/", include("elections.urls")),
2021-06-15 11:41:04 +02:00
path("faqs/", include("faqs.urls")),
2020-12-21 00:07:07 +01:00
path("auth/", include("shared.auth.urls")),
2021-01-26 14:26:35 +01:00
path("authens/", include("authens.urls")),
2021-04-14 03:22:22 +02:00
path("i18n/", include("django.conf.urls.i18n")),
2020-11-19 17:26:07 +01:00
]
2020-12-19 18:01:35 +01:00
if settings.DEBUG:
urlpatterns += [
path("admin/", admin.site.urls),
2024-07-09 08:46:06 +02:00
path("__reload__/", include("django_browser_reload.urls")),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
2020-12-19 18:01:35 +01:00
if "debug_toolbar" in settings.INSTALLED_APPS:
from debug_toolbar import urls as djdt_urls
urlpatterns += [
path("__debug__/", include(djdt_urls)),
]