diff --git a/shynet/shynet/settings.py b/shynet/shynet/settings.py index 9b2cc94..06174b2 100644 --- a/shynet/shynet/settings.py +++ b/shynet/shynet/settings.py @@ -58,6 +58,7 @@ INSTALLED_APPS = [ "allauth", "allauth.account", "allauth.socialaccount", + "debug_toolbar" ] MIDDLEWARE = [ @@ -70,6 +71,7 @@ MIDDLEWARE = [ "django.contrib.sites.middleware.CurrentSiteMiddleware", "django.contrib.messages.middleware.MessageMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware", + "debug_toolbar.middleware.DebugToolbarMiddleware", ] ROOT_URLCONF = "shynet.urls" @@ -247,6 +249,10 @@ LOGIN_REDIRECT_URL = "/" SITE_ID = 1 +INTERNAL_IPS = [ + '127.0.0.1', +] + # Celery CELERY_TASK_ALWAYS_EAGER = os.getenv("CELERY_TASK_ALWAYS_EAGER", "True") == "True" diff --git a/shynet/shynet/urls.py b/shynet/shynet/urls.py index efd1d68..0df3737 100644 --- a/shynet/shynet/urls.py +++ b/shynet/shynet/urls.py @@ -15,8 +15,10 @@ Including another URLconf """ from django.contrib import admin from django.urls import include, path +import debug_toolbar urlpatterns = [ + path('__debug__/', include(debug_toolbar.urls)), path("admin/", admin.site.urls), path("accounts/", include("allauth.urls")), path("ingress/", include(("analytics.ingress_urls", "ingress")), name="ingress"),