Skip to content

Commit

Permalink
Fix configuration for optional django-debug-toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
rlskoeser committed Apr 4, 2024
1 parent 3dd8e8b commit 12d1da9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ppa/settings/components/debug.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# if django-debug-toolbar is installed, enable it

from ppa.settings.components.base import INSTALLED_APPS, MIDDLEWARE
from ppa.settings import INSTALLED_APPS, MIDDLEWARE

# Configure internal IPs for access to view debug toolbar
INTERNAL_IPS = ["127.0.0.1", "localhost"]

# if django-debug-toolbar is installed, enable it
try:
INSTALLED_APPS.append("debug_toolbar")
MIDDLEWARE += ("debug_toolbar.middleware.DebugToolbarMiddleware",)
Expand Down

0 comments on commit 12d1da9

Please sign in to comment.