From af5282abd4b395bb25878843663a85590451ea4e Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Wed, 19 Sep 2012 16:25:13 -0400 Subject: [PATCH] Add client-side debugging tools (imported from commit faa87e85f366e91fe33e0f24e00ae1197403605d) --- humbug/settings.py | 3 +++ templates/zephyr/index.html | 5 +++++ zephyr/static/js/debug.js | 24 ++++++++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 zephyr/static/js/debug.js diff --git a/humbug/settings.py b/humbug/settings.py index e1fa786948..a5e7944579 100644 --- a/humbug/settings.py +++ b/humbug/settings.py @@ -7,6 +7,9 @@ deployed = (platform.node() == 'humbug-dev') DEBUG = not deployed TEMPLATE_DEBUG = DEBUG +if DEBUG: + INTERNAL_IPS = ('127.0.0.1',) + ADMINS = ( ('Jessica McKellar', 'jessica.mckellar@gmail.com'), ) diff --git a/templates/zephyr/index.html b/templates/zephyr/index.html index 2f7a7ea4a3..c82309cd21 100644 --- a/templates/zephyr/index.html +++ b/templates/zephyr/index.html @@ -29,6 +29,11 @@ + +{% if debug %} + +{% endif %} +