1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Updated doc links to point to Python 3 documentation

This commit is contained in:
Claude Paroz
2014-04-26 16:00:15 +02:00
parent 6d6af7244b
commit 680a0f08b1
22 changed files with 68 additions and 71 deletions

View File

@@ -637,7 +637,7 @@ the Python import path to your :file:`mysite/settings.py` file.
>>> import django
>>> django.setup()
If this raises an :exc:`~exceptions.AttributeError`, you're probably using
If this raises an :exc:`AttributeError`, you're probably using
a version of Django that doesn't match this tutorial version. You'll want
to either switch to the older tutorial or the newer Django version.

View File

@@ -106,9 +106,9 @@ This code includes a few things we haven't covered yet in this tutorial:
<django.http.HttpRequest.POST>` in our code, to ensure that data is only
altered via a POST call.
* ``request.POST['choice']`` will raise :exc:`~exceptions.KeyError` if
* ``request.POST['choice']`` will raise :exc:`KeyError` if
``choice`` wasn't provided in POST data. The above code checks for
:exc:`~exceptions.KeyError` and redisplays the question form with an error
:exc:`KeyError` and redisplays the question form with an error
message if ``choice`` isn't given.
* After incrementing the choice count, the code returns an