1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 11:16:47 +00:00

chore(settings): settings-dev without obsolete keys

TEMPLATE_DEBUG has been unused since Django 1.10 and debug toolbar no
longer reads INTERCEPT_REDIRECTS; DebugToolbarMiddleware goes first, as
its documentation asks, instead of after django-axes.
This commit is contained in:
catborise 2026-11-06 11:01:51 +03:00
parent abe3b7ee63
commit 52cb23eefd

View file

@ -8,7 +8,6 @@ HowTo: python3 manage.py runserver 0:8000 --settings=webvirtcloud.settings-dev
from webvirtcloud.settings import *
DEBUG = True
TEMPLATE_DEBUG = True
INSTALLED_APPS += [
@ -16,15 +15,11 @@ INSTALLED_APPS += [
"template_profiler_panel",
]
MIDDLEWARE += [
"debug_toolbar.middleware.DebugToolbarMiddleware",
]
# as early as possible, as django-debug-toolbar asks
MIDDLEWARE.insert(0, "debug_toolbar.middleware.DebugToolbarMiddleware")
# DebugToolBar
INTERNAL_IPS = ("127.0.0.1",)
DEBUG_TOOLBAR_CONFIG = {
"INTERCEPT_REDIRECTS": False,
}
# http://django-debug-toolbar.readthedocs.org/en/latest/configuration.html#debug-toolbar-panels
DEBUG_TOOLBAR_PANELS = [
'debug_toolbar.panels.history.HistoryPanel',