diff --git a/django/views/csrf.py b/django/views/csrf.py index aa5e25b5b4..fa996fff24 100644 --- a/django/views/csrf.py +++ b/django/views/csrf.py @@ -11,12 +11,30 @@ CSRF_FAILRE_TEMPLATE = """ + 403 Forbidden + -

403 Forbidden

+
+

Forbidden (403)

CSRF verification failed. Request aborted.

- {% if DEBUG %} +
+{% if DEBUG %} +

Help

{% if reason %}

Reason given for failure:

@@ -51,10 +69,12 @@ CSRF_FAILRE_TEMPLATE = """ and only the initial error message will be displayed.

You can customize this page using the CSRF_FAILURE_VIEW setting.

- {% else %} +
+{% else %} +

More information is available with DEBUG=True.

- - {% endif %} +
+{% endif %} """