diff --git a/cinema_service/settings.py b/cinema_service/settings.py index d3107455..4b981921 100644 --- a/cinema_service/settings.py +++ b/cinema_service/settings.py @@ -42,7 +42,6 @@ "rest_framework", "cinema", "user", - "debug_toolbar", ] MIDDLEWARE = [ @@ -53,7 +52,6 @@ "django.contrib.auth.middleware.AuthenticationMiddleware", "django.contrib.messages.middleware.MessageMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware", - "debug_toolbar.middleware.DebugToolbarMiddleware", ] ROOT_URLCONF = "cinema_service.urls" @@ -133,9 +131,3 @@ # https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" - -INTERNAL_IPS = [ - # ... - "127.0.0.1", - # ... -] diff --git a/cinema_service/urls.py b/cinema_service/urls.py index cadae555..3268bf19 100644 --- a/cinema_service/urls.py +++ b/cinema_service/urls.py @@ -1,8 +1,8 @@ -from debug_toolbar.toolbar import debug_toolbar_urls + from django.contrib import admin from django.urls import path, include urlpatterns = [ path("admin/", admin.site.urls), path("api/", include("cinema.urls", namespace="cinema")), -] + debug_toolbar_urls() +] diff --git a/requirements.txt b/requirements.txt index 8232b032..4372e38a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,15 +1,6 @@ -asgiref==3.8.1 Django==4.0.4 -django-debug-toolbar==4.4.6 djangorestframework==3.13.1 flake8==5.0.4 flake8-quotes==3.3.1 flake8-variables-names==0.0.5 -mccabe==0.7.0 pep8-naming==0.13.2 -pycodestyle==2.9.1 -pyflakes==2.5.0 -pytz==2024.2 -sqlparse==0.5.3 -typing_extensions==4.12.2 -tzdata==2024.2