1
0
mirror of https://github.com/django/django.git synced 2024-12-25 02:26:12 +00:00

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

View File

@ -60,6 +60,8 @@ CSRF_FAILURE_TEMPLATE = """
ensure:</p> ensure:</p>
<ul> <ul>
<li>Your browser is accepting cookies.</li>
<li>The view function uses <a <li>The view function uses <a
href='http://docs.djangoproject.com/en/dev/ref/templates/api/#subclassing-context-requestcontext'><code>RequestContext</code></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> for the template, instead of <code>Context</code>.</li>