2020-05-21 16:42:31 +02:00
|
|
|
from django.conf import settings
|
2020-07-09 22:53:08 +02:00
|
|
|
from django.conf.urls import include, url
|
2015-04-29 17:56:45 +02:00
|
|
|
from django.contrib import admin
|
|
|
|
|
2016-04-14 13:41:13 +02:00
|
|
|
from welcome.views import index, health
|
|
|
|
|
2015-04-29 17:56:45 +02:00
|
|
|
urlpatterns = [
|
2020-07-09 22:53:08 +02:00
|
|
|
# Examples:
|
|
|
|
# url(r'^$', 'project.views.home', name='home'),
|
|
|
|
# url(r'^blog/', include('blog.urls')),
|
|
|
|
|
|
|
|
url(r'^$', index),
|
|
|
|
url(r'^health$', health),
|
|
|
|
url(r'^admin/', include(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-07-09 22:53:08 +02:00
|
|
|
url(r'^__debug__/', include(debug_toolbar.urls)),
|
2017-10-24 17:38:42 +02:00
|
|
|
] + urlpatterns
|