Skip to content

Commit

Permalink
refactor: Comment out debug toolbar settings for easier local develop…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
AhmedNassar7 committed Dec 21, 2024
1 parent 43d956b commit b5fab8c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions egypt_metro/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"rest_framework_simplejwt", # JWT authentication
"corsheaders", # CORS headers
'drf_yasg', # Swagger
"debug_toolbar", # Debug toolbar
# "debug_toolbar", # Debug toolbar

# Custom apps
"apps.users.apps.UsersConfig", # Users app
Expand All @@ -80,7 +80,7 @@
"corsheaders.middleware.CorsMiddleware", # CORS middleware
"whitenoise.middleware.WhiteNoiseMiddleware", # WhiteNoise middleware
"allauth.account.middleware.AccountMiddleware", # Account middleware
"debug_toolbar.middleware.DebugToolbarMiddleware", # Debug toolbar middleware
# "debug_toolbar.middleware.DebugToolbarMiddleware", # Debug toolbar middleware
]

ROOT_URLCONF = "egypt_metro.urls" # Root URL configuration
Expand Down
10 changes: 5 additions & 5 deletions egypt_metro/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import logging
from django.contrib import admin
from django.urls import path, include
from egypt_metro import settings
# from egypt_metro import settings
from .views import health_check, home
# from django.conf.urls.static import static
from drf_yasg.views import get_schema_view
Expand Down Expand Up @@ -79,10 +79,10 @@
# logger.debug('URL patterns: %s', [path.pattern for path in urlpatterns])

# Debug Toolbar (only for development)
if settings.DEBUG:
urlpatterns += [
path("__debug__/", include("debug_toolbar.urls")), # Debug toolbar
]
# if settings.DEBUG:
# urlpatterns += [
# path("__debug__/", include("debug_toolbar.urls")), # Debug toolbar
# ]

# Static and media files (if DEBUG is enabled)
# if settings.DEBUG:
Expand Down

0 comments on commit b5fab8c

Please sign in to comment.