summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Plant <L.Plant.98@cantab.net>2009-10-27 22:20:03 +0000
committerLuke Plant <L.Plant.98@cantab.net>2009-10-27 22:20:03 +0000
commit5df19aa99e0ae5753be19d9ead887c8ad5ee54c8 (patch)
tree7b5b7021934f9ff5dfce3923530150db28c88f82
parent9dc9770736ddf236be5ae08447bb323433fffd44 (diff)
Small improvement to CSRF failure template.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11676 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/views/csrf.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/django/views/csrf.py b/django/views/csrf.py
index dd8a8966b1..53474df8a4 100644
--- a/django/views/csrf.py
+++ b/django/views/csrf.py
@@ -46,6 +46,8 @@ CSRF_FAILRE_TEMPLATE = """
and only the initial error message will be displayed. </p>
<p>You can customize this page using the CSRF_FAILURE_VIEW setting.</p>
+ {% else %}
+ <p><small>More information is available with DEBUG=True.</small></p>
{% endif %}
</body>