diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-09-20 12:36:42 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-09-20 12:37:11 -0400 |
commit | f28adcc7058dd6c3ed49ec2b66e4c1324f9b10f7 (patch) | |
tree | 0a6c4f51df6a95f1ce5b9c7789852788f564b9df /askbot/templates/debug_header.html | |
parent | 0a4b87e237fad26b6d135aca9173bc4d8af57e7f (diff) | |
download | askbot-f28adcc7058dd6c3ed49ec2b66e4c1324f9b10f7.tar.gz askbot-f28adcc7058dd6c3ed49ec2b66e4c1324f9b10f7.tar.bz2 askbot-f28adcc7058dd6c3ed49ec2b66e4c1324f9b10f7.zip |
combined all dev branches for kp
Diffstat (limited to 'askbot/templates/debug_header.html')
-rw-r--r-- | askbot/templates/debug_header.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/askbot/templates/debug_header.html b/askbot/templates/debug_header.html new file mode 100644 index 00000000..e1230265 --- /dev/null +++ b/askbot/templates/debug_header.html @@ -0,0 +1,27 @@ +{% if settings.USING_RUNSERVER %} + {% if settings.DEBUG == False %} + <div> + <p> + You are seeing this message because you are using Django runserver + and DEBUG_MODE is False. Runserver should not be used in production. + </p> + <p> + To serve static media in production - please run: + <pre>python manage.py collectstatic</pre> + </p> + <p> + If you do not see page styling - set DEBUG_MODE = True. + </p> + </div> + {% endif %} +{% else %} + {% if settings.DEBUG == True %} + <div> + <p> + Debug mode is on, do not use it in production. + To turn it off, use DEBUG = False in your + settings.py file. + </p> + </div> + {% endif %} +{% endif %} |