diff --git a/taxi_service/settings.py b/taxi_service/settings.py index 120c80d1..cee5d49c 100644 --- a/taxi_service/settings.py +++ b/taxi_service/settings.py @@ -140,4 +140,4 @@ "127.0.0.1", ] -LOGIN_REDIRECT_URL = "/" # Перенаправляє на головну сторінку після входу +LOGIN_REDIRECT_URL = "/" diff --git a/taxi_service/urls.py b/taxi_service/urls.py index 5d781485..ecfcd060 100644 --- a/taxi_service/urls.py +++ b/taxi_service/urls.py @@ -13,6 +13,7 @@ 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 @@ -24,3 +25,7 @@ path("", include("taxi.urls", namespace="taxi")), path("accounts/", include("django.contrib.auth.urls")) ] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) + +if settings.DEBUG: + import debug_toolbar + urlpatterns += [path("__debug__/", include(debug_toolbar.urls))] diff --git a/templates/includes/sidebar.html b/templates/includes/sidebar.html index 10000fa5..dcac233d 100644 --- a/templates/includes/sidebar.html +++ b/templates/includes/sidebar.html @@ -1,14 +1,16 @@
diff --git a/templates/registration/logged-out.html b/templates/registration/logged_out.html similarity index 100% rename from templates/registration/logged-out.html rename to templates/registration/logged_out.html