From 74ed02e43827a5f873b810f18a17e81611572c4b Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Wed, 6 Jul 2016 11:59:31 +0200 Subject: [PATCH] add debug-toolbar and more extensions (needs rebuild) --- app/local_settings.py | 20 ++++++++++++++++++++ requirements.txt | 6 ++++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/app/local_settings.py b/app/local_settings.py index d764a1e8..5b6f5d61 100644 --- a/app/local_settings.py +++ b/app/local_settings.py @@ -117,3 +117,23 @@ BREAKING_NEWS_FEATURED_ID = 4 BLOG_POST_PER_PAGE = 200 FILEBROWSER_MAX_UPLOAD_SIZE = 512000000 + +if DEBUG: + DEBUG_TOOLBAR_CONFIG = { + 'SHOW_TOOLBAR_CALLBACK': lambda x : True + } +DEBUG_TOOLBAR_PATCH_SETTINGS = False +DEBUG_TOOLBAR_PANELS = [ + 'debug_toolbar.panels.versions.VersionsPanel', + 'debug_toolbar.panels.timer.TimerPanel', + 'debug_toolbar.panels.settings.SettingsPanel', + 'debug_toolbar.panels.headers.HeadersPanel', + 'debug_toolbar.panels.request.RequestPanel', + 'debug_toolbar.panels.sql.SQLPanel', + 'debug_toolbar.panels.staticfiles.StaticFilesPanel', + 'debug_toolbar.panels.templates.TemplatesPanel', + 'debug_toolbar.panels.cache.CachePanel', + 'debug_toolbar.panels.signals.SignalsPanel', + 'debug_toolbar.panels.logging.LoggingPanel', + 'debug_toolbar.panels.redirects.RedirectsPanel', +] diff --git a/requirements.txt b/requirements.txt index 423e25ec..8a9376ef 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,10 +2,12 @@ setuptools uwsgi watchdog mysqlclient +psycopg2 +pyquery Django==1.9.7 mezzanine==4.1.0 django-modeltranslation django-meta -psycopg2 django-bower -pyquery +django-debug-toolbar +django-extensions -- 2.39.5