Skip to content

Commit

Permalink
feat: Comment out debug toolbar configuration in settings and urls fo…
Browse files Browse the repository at this point in the history
…r production readiness
  • Loading branch information
AhmedNassar7 committed Dec 17, 2024
1 parent 9fe72b4 commit 7abe0ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions egypt_metro/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"rest_framework", # REST framework
"rest_framework_simplejwt", # JWT authentication
"corsheaders", # CORS headers
"debug_toolbar", # Debug toolbar
# "debug_toolbar", # Debug toolbar
# Custom apps
"apps.users.apps.UsersConfig", # Users app
"apps.stations.apps.StationsConfig", # Stations app
Expand All @@ -62,8 +62,8 @@
"django.contrib.messages.middleware.MessageMiddleware", # Messages middleware
"django.middleware.clickjacking.XFrameOptionsMiddleware", # Clickjacking middleware
"corsheaders.middleware.CorsMiddleware", # CORS middleware
"debug_toolbar.middleware.DebugToolbarMiddleware", # Debug toolbar middleware
"allauth.account.middleware.AccountMiddleware", # Account middleware
# "debug_toolbar.middleware.DebugToolbarMiddleware", # Debug toolbar middleware
]

ROOT_URLCONF = "egypt_metro.urls" # Root URL configuration
Expand Down
8 changes: 4 additions & 4 deletions egypt_metro/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
]

# 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 7abe0ee

Please sign in to comment.