django-ex/project/urls.py

22 lines
525 B
Python
Raw Normal View History

2020-05-21 16:42:31 +02:00
from django.conf import settings
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 = [
# 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 = [
url(r'^__debug__/', include(debug_toolbar.urls)),
2017-10-24 17:38:42 +02:00
] + urlpatterns