From e441cebce340f54741be957817cc034000deab3c Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 26 Apr 2014 16:00:15 +0200 Subject: [1.7.x] Updated doc links to point to Python 3 documentation Backport of 680a0f08b from master. --- docs/intro/tutorial01.txt | 2 +- docs/intro/tutorial04.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/intro') diff --git a/docs/intro/tutorial01.txt b/docs/intro/tutorial01.txt index 3211bb873f..cce3d9aa65 100644 --- a/docs/intro/tutorial01.txt +++ b/docs/intro/tutorial01.txt @@ -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. diff --git a/docs/intro/tutorial04.txt b/docs/intro/tutorial04.txt index 72dcde8fc2..9aa0011e51 100644 --- a/docs/intro/tutorial04.txt +++ b/docs/intro/tutorial04.txt @@ -106,9 +106,9 @@ This code includes a few things we haven't covered yet in this tutorial: ` 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 -- cgit v1.3