Add debug toolbar

master
Mark Veidemanis 2 years ago
parent 8ae15ce9a4
commit ad4d24b3a0
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

@ -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

@ -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"),

@ -1,5 +1,4 @@
{% load django_tables2 %}
{% load i18n %}
{% load django_tables2_bulma_template %}
{% load static %}
{% load joinsep %}

@ -15,4 +15,4 @@ WORKDIR /code
COPY requirements.dev.txt /code/
RUN python -m venv /venv
RUN . /venv/bin/activate && pip install -r requirements.dev.txt
CMD . /venv/bin/activate && exec python manage.py runserver 0.0.0.0:8000
CMD . /venv/bin/activate && exec python manage.py runserver --nothreading 0.0.0.0:8000

@ -15,3 +15,5 @@ siphashc
redis
sortedcontainers
manticoresearch
django-debug-toolbar
django-debug-toolbar-template-profiler

@ -14,3 +14,5 @@ siphashc
redis
sortedcontainers
manticoresearch
django-debug-toolbar
django-debug-toolbar-template-profiler

@ -15,3 +15,5 @@ siphashc
redis
sortedcontainers
manticoresearch
django-debug-toolbar
django-debug-toolbar-template-profiler

Loading…
Cancel
Save