django-ex/project/urls.py
2017-10-25 00:44:29 +09:00

21 lines
525 B
Python

from django.conf import settings
from django.conf.urls import include, url
from django.contrib import admin
from welcome.views import index, health
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)),
]
if settings.DEBUG:
import debug_toolbar
urlpatterns = [
url(r'^__debug__/', include(debug_toolbar.urls)),
] + urlpatterns