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