1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-11 12:46:49 +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 * from webvirtcloud.settings import *
DEBUG = True DEBUG = True
TEMPLATE_DEBUG = True
INSTALLED_APPS += [ INSTALLED_APPS += [
@ -16,15 +15,11 @@ INSTALLED_APPS += [
"template_profiler_panel", "template_profiler_panel",
] ]
MIDDLEWARE += [ # as early as possible, as django-debug-toolbar asks
"debug_toolbar.middleware.DebugToolbarMiddleware", MIDDLEWARE.insert(0, "debug_toolbar.middleware.DebugToolbarMiddleware")
]
# DebugToolBar # DebugToolBar
INTERNAL_IPS = ("127.0.0.1",) 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 # http://django-debug-toolbar.readthedocs.org/en/latest/configuration.html#debug-toolbar-panels
DEBUG_TOOLBAR_PANELS = [ DEBUG_TOOLBAR_PANELS = [
'debug_toolbar.panels.history.HistoryPanel', 'debug_toolbar.panels.history.HistoryPanel',