diff --git a/indymeet/settings/base.py b/indymeet/settings/base.py index 69106bd6..4634f921 100644 --- a/indymeet/settings/base.py +++ b/indymeet/settings/base.py @@ -56,6 +56,8 @@ "django.contrib.staticfiles", # azure storage "storages", + # other + "debug_toolbar", ] MIDDLEWARE = [ @@ -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" diff --git a/indymeet/urls.py b/indymeet/urls.py index f16a8185..b026f67a 100644 --- a/indymeet/urls.py +++ b/indymeet/urls.py @@ -18,6 +18,7 @@ path("accounts/", include("accounts.urls")), path("", include("home.urls")), path("", include("puput.urls")), + path("__debug__/", include("debug_toolbar.urls")), ]