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 = """
+CSRF verification failed. Request aborted.
- {% if DEBUG %} +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 %} +More information is available with DEBUG=True.
- - {% endif %} +