#23866: Broken link on 403 forbidden "CSRF token missing or incorrect." page
---------------------------------+------------------------------------
     Reporter:  nikolas          |                    Owner:  nobody
         Type:  Bug              |                   Status:  new
    Component:  Documentation    |                  Version:  1.7
     Severity:  Release blocker  |               Resolution:
     Keywords:  csrf             |             Triage Stage:  Accepted
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  1                |                    UI/UX:  0
---------------------------------+------------------------------------

Comment (by claudep):

 We already have something like that in:
 
https://github.com/django/django/blob/master/django/core/management/templates.py#L103

 Then I've identified some locations which could benefit from a common
 implementation of the docs version number:
 {{{
 django/contrib/gis/db/models/__init__.py:        "See also
 https://docs.djangoproject.com/en/stable/ref/contrib/gis/install/geolibs/";)
 django/core/management/commands/squashmigrations.py:
 "https://docs.djangoproject.com/en/1.7/topics/migrations/#squashing-
 migrations"
 django/core/management/sql.py:            "see:
 https://docs.djangoproject.com/en/dev/ref/settings/#databases";)
 django/db/migrations/state.py:
 "https://docs.djangoproject.com/en/1.7/topics/migrations/#dependencies "
 django/db/migrations/writer.py:
 "https://docs.djangoproject.com/en/dev/topics/migrations/#serializing-
 values"
 django/db/migrations/writer.py:                "migration files.\nFor
 more, see https://docs.djangoproject.com/en/dev/";
 django/utils/deconstruct.py:
 "https://docs.djangoproject.com/en/dev/topics/migrations/#serializing-
 values"
 django/views/csrf.py:
 href='http://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ref-contrib-
 csrf'>Django's
 django/views/csrf.py:
 href='http://docs.djangoproject.com/en/dev/ref/templates/api/#subclassing-
 context-requestcontext'><code>RequestContext</code></a>
 }}}

 So I think that `django.utils.version` could have a new `get_docs_version`
 utility.

--
Ticket URL: <https://code.djangoproject.com/ticket/23866#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.973cf74c81efbed2765c1717512e9a77%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to