]> git.parisson.com Git - mezzo.git/commitdiff
add debug-toolbar and more extensions (needs rebuild)
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 6 Jul 2016 09:59:31 +0000 (11:59 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 6 Jul 2016 09:59:56 +0000 (11:59 +0200)
app/local_settings.py
requirements.txt

index d764a1e84d8fd020275c59ab4b67bd94f994654d..5b6f5d61a08e9c4be1ed95ae0426f4fcf50c3e02 100644 (file)
@@ -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',
+]
index 423e25ec77facbdf25b4dbef5ea881f80f26e7be..8a9376efa8cb153261d3ad308cbf458bbed9f65a 100644 (file)
@@ -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