Add debug toolbar

This commit is contained in:
2022-09-05 07:20:30 +01:00
parent 8ae15ce9a4
commit ad4d24b3a0
7 changed files with 16 additions and 2 deletions

View File

@@ -35,17 +35,21 @@ INSTALLED_APPS = [
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
"debug_toolbar",
"template_profiler_panel",
"django_htmx",
"crispy_forms",
"crispy_bulma",
"django_tables2",
"django_tables2_bulma_template",
]
CRISPY_TEMPLATE_PACK = "bulma"
CRISPY_ALLOWED_TEMPLATE_PACKS = ("bulma",)
DJANGO_TABLES2_TEMPLATE = "django-tables2/bulma.html"
MIDDLEWARE = [
"debug_toolbar.middleware.DebugToolbarMiddleware",
"django.middleware.security.SecurityMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.common.CommonMiddleware",
@@ -139,6 +143,10 @@ REST_FRAMEWORK = {
]
}
INTERNAL_IPS = [
"127.0.0.1",
]
from app.local_settings import * # noqa
if PROFILER: # noqa - trust me its there

View File

@@ -73,6 +73,7 @@ from core.views.ui.insights import (
)
urlpatterns = [
path('__debug__/', include('debug_toolbar.urls')),
path("", DrilldownTableView.as_view(), name="home"),
path("search/", DrilldownTableView.as_view(), name="search"),
path("about/", About.as_view(), name="about"),