Improved CSRF error message.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17570 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Paul McMillan 2012-02-21 23:54:02 +00:00
parent 5b560ec0c0
commit a3bb4df895
1 changed files with 2 additions and 0 deletions

View File

@ -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>