Skip to content

Commit

Permalink
Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Bondzik-S committed Nov 19, 2024
1 parent 9785b2e commit 7d69dfe
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions taxi_service/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""taxi_service URL Configuration
"""
taxi_service URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/4.0/topics/http/urls/
Expand All @@ -13,7 +14,6 @@
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path("blog/", include("blog.urls"))
"""
from debug_toolbar.toolbar import debug_toolbar_urls
from django.contrib import admin
from django.urls import path, include
from django.conf import settings
Expand All @@ -23,9 +23,11 @@
urlpatterns = [
path("admin/", admin.site.urls),
path("", include("taxi.urls", namespace="taxi")),
path("accounts/", include("django.contrib.auth.urls"))
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
] + static(
settings.STATIC_URL,
document_root=settings.STATIC_ROOT
)

if settings.DEBUG:
import debug_toolbar
urlpatterns += [path("__debug__/", include(debug_toolbar.urls))]
urlpatterns += [path("__debug__/", include(debug_toolbar.urls))]

0 comments on commit 7d69dfe

Please sign in to comment.