[dev] add django debug toolbar to dev env

This commit is contained in:
bronsen 2025-03-13 19:54:19 +01:00
parent 470e690c61
commit c1383ca376
5 changed files with 12 additions and 3 deletions

View file

@ -47,6 +47,7 @@ if env("DEV") is True:
INSTALLED_APPS.extend(
[
"django_extensions",
"debug_toolbar",
]
)
SHELL_PLUS = "ipython"
@ -60,6 +61,11 @@ MIDDLEWARE = [
"django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
]
if env("DEV") is True:
MIDDLEWARE.append("debug_toolbar.middleware.DebugToolbarMiddleware")
INTERNAL_IPS = [
"127.0.0.1",
]
ROOT_URLCONF = "config.urls"