diff --git a/taxi_service/settings.py b/taxi_service/settings.py index fa35db7d..2cd06764 100644 --- a/taxi_service/settings.py +++ b/taxi_service/settings.py @@ -37,13 +37,11 @@ "django.contrib.sessions", "django.contrib.messages", "django.contrib.staticfiles", - "debug_toolbar", "taxi", ] MIDDLEWARE = [ "django.middleware.security.SecurityMiddleware", - "debug_toolbar.middleware.DebugToolbarMiddleware", "django.contrib.sessions.middleware.SessionMiddleware", "django.middleware.common.CommonMiddleware", "django.middleware.csrf.CsrfViewMiddleware", diff --git a/taxi_service/urls.py b/taxi_service/urls.py index a2341345..4b1cbda4 100644 --- a/taxi_service/urls.py +++ b/taxi_service/urls.py @@ -19,9 +19,9 @@ from django.conf.urls.static import static + urlpatterns = [ path("admin/", admin.site.urls), path("", include("taxi.urls", namespace="taxi")), path("accounts/", include("django.contrib.auth.urls")), - path("__debug__/", include("debug_toolbar.urls")), ] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)