diff --git a/taxi_service/urls.py b/taxi_service/urls.py index ecfcd060..eeb6fcf8 100644 --- a/taxi_service/urls.py +++ b/taxi_service/urls.py @@ -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/ @@ -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 @@ -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))] \ No newline at end of file