diff options
| author | Claude Paroz <claude@2xlibre.net> | 2014-12-25 13:56:16 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2014-12-25 14:01:15 +0100 |
| commit | ffa548fb561d4e32b42566cc67a2499a5e321944 (patch) | |
| tree | 5e0d071572a363defb2dd00a5e9ba7351f6574e6 | |
| parent | 234a2e0b6bcad5536d5d6cbb398eb6b7cc4eb67e (diff) | |
Updated link to CSRF docs
Refs #23866.
| -rw-r--r-- | django/views/csrf.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/views/csrf.py b/django/views/csrf.py index 9018bd981a..a709e5fc1c 100644 --- a/django/views/csrf.py +++ b/django/views/csrf.py @@ -59,7 +59,7 @@ CSRF_FAILURE_TEMPLATE = """ <p>In general, this can occur when there is a genuine Cross Site Request Forgery, or when <a - href='https://docs.djangoproject.com/en/{{ docs_version }}/ref/contrib/csrf/#ref-contrib-csrf'>Django's + href="https://docs.djangoproject.com/en/{{ docs_version }}/ref/csrf/">Django's CSRF mechanism</a> has not been used correctly. For POST forms, you need to ensure:</p> @@ -67,7 +67,7 @@ CSRF_FAILURE_TEMPLATE = """ <li>Your browser is accepting cookies.</li> <li>The view function uses <a - href='https://docs.djangoproject.com/en/{{ docs_version }}/ref/templates/api/#subclassing-context-requestcontext'><code>RequestContext</code></a> + href="https://docs.djangoproject.com/en/{{ docs_version }}/ref/templates/api/#subclassing-context-requestcontext"><code>RequestContext</code></a> for the template, instead of <code>Context</code>.</li> <li>In the template, there is a <code>{% templatetag openblock %} csrf_token |
