Fix project settings
This commit is contained in:
parent
d6a79c94b0
commit
d13d62ecd7
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue