From a3bb4df8956185c345e3a4c68df15ad7286788b0 Mon Sep 17 00:00:00 2001 From: Paul McMillan <Paul@McMillan.ws> Date: Tue, 21 Feb 2012 23:54:02 +0000 Subject: [PATCH] Improved CSRF error message. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17570 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/views/csrf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/django/views/csrf.py b/django/views/csrf.py index 80cc21d528..d58a1404e9 100644 --- a/django/views/csrf.py +++ b/django/views/csrf.py @@ -60,6 +60,8 @@ CSRF_FAILURE_TEMPLATE = """ ensure:</p> <ul> + <li>Your browser is accepting cookies.</li> + <li>The view function uses <a href='http://docs.djangoproject.com/en/dev/ref/templates/api/#subclassing-context-requestcontext'><code>RequestContext</code></a> for the template, instead of <code>Context</code>.</li>