2020-05-21 16:24:44 +02:00
|
|
|
"""project URL Configuration
|
|
|
|
|
|
|
|
The `urlpatterns` list routes URLs to views. For more information please see:
|
|
|
|
https://docs.djangoproject.com/en/2.2/topics/http/urls/
|
|
|
|
Examples:
|
|
|
|
Function views
|
|
|
|
1. Add an import: from my_app import views
|
|
|
|
2. Add a URL to urlpatterns: path('', views.home, name='home')
|
|
|
|
Class-based views
|
|
|
|
1. Add an import: from other_app.views import Home
|
|
|
|
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
|
|
|
|
Including another URLconf
|
|
|
|
1. Import the include() function: from django.urls import include, path
|
|
|
|
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
|
|
|
"""
|
2020-05-21 16:42:31 +02:00
|
|
|
from django.conf import settings
|
2015-04-29 17:56:45 +02:00
|
|
|
from django.contrib import admin
|
2020-05-21 16:42:31 +02:00
|
|
|
from django.urls import include, path
|
2015-04-29 17:56:45 +02:00
|
|
|
|
2016-04-14 13:41:13 +02:00
|
|
|
from welcome.views import index, health
|
|
|
|
|
2015-04-29 17:56:45 +02:00
|
|
|
urlpatterns = [
|
2020-05-21 16:24:44 +02:00
|
|
|
path('', index, name='home'),
|
|
|
|
path('health/', health),
|
|
|
|
path('admin/', admin.site.urls),
|
2015-04-29 17:56:45 +02:00
|
|
|
]
|
2017-10-24 17:38:42 +02:00
|
|
|
|
|
|
|
if settings.DEBUG:
|
|
|
|
import debug_toolbar
|
|
|
|
urlpatterns = [
|
2020-05-21 16:42:31 +02:00
|
|
|
path('__debug__/', include(debug_toolbar.urls)),
|
2017-10-24 17:38:42 +02:00
|
|
|
] + urlpatterns
|