Skip to content

Commit

Permalink
Add django debug toolbar (#142)
Browse files Browse the repository at this point in the history
* add django debug toolbar

---------

Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
  • Loading branch information
dawnwages and sarahboyce authored Dec 11, 2023
1 parent dda9f31 commit b2af32c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions indymeet/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@
"django.contrib.staticfiles",
# azure storage
"storages",
# other
"debug_toolbar",
]

MIDDLEWARE = [
Expand All @@ -68,6 +70,14 @@
"django.middleware.security.SecurityMiddleware",
"whitenoise.middleware.WhiteNoiseMiddleware",
"wagtail.contrib.redirects.middleware.RedirectMiddleware",
"debug_toolbar.middleware.DebugToolbarMiddleware",
]

AZURE_IP = os.environ.get("AZURE_IP", False)

INTERNAL_IPS = [
"127.0.0.1",
AZURE_IP,
]

ROOT_URLCONF = "indymeet.urls"
Expand Down
1 change: 1 addition & 0 deletions indymeet/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
path("accounts/", include("accounts.urls")),
path("", include("home.urls")),
path("", include("puput.urls")),
path("__debug__/", include("debug_toolbar.urls")),
]


Expand Down

0 comments on commit b2af32c

Please sign in to comment.