Fix project settings

This commit is contained in:
Lumir Balhar 2020-05-21 16:42:31 +02:00
parent d6a79c94b0
commit d13d62ecd7

View file

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