Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.5.x] Fixed #19965 - Added a warning that the tutorial is written f…

…or Python 2.

Thanks itsallvoodoo for the patch.

Backport of e1bafdb from master.
  • Loading branch information...
commit e5c57fe1b429b401d47ac7bf8f9056b707c5ec07 1 parent 1ac7d4e
Tim Graham authored March 12, 2013

Showing 1 changed file with 9 additions and 4 deletions. Show diff stats Hide diff stats

  1. 13  docs/intro/tutorial01.txt
13  docs/intro/tutorial01.txt
@@ -19,10 +19,15 @@ tell Django is installed and which version by running the following command:
19 19
 
20 20
     python -c "import django; print(django.get_version())"
21 21
 
22  
-You should see either the version of your Django installation or an error
23  
-telling "No module named django". Check also that the version number matches
24  
-the version of this tutorial. If they don't match, you can refer to the
25  
-tutorial for your version of Django or update Django to the newest version.
  22
+If Django is installed, you should see the version of your installation. If it
  23
+isn't, you'll get an error telling "No module named django".
  24
+
  25
+This tutorial is written for Django |version| and Python 2.x. If the Django
  26
+version doesn't match, you can refer to the tutorial for your version of Django
  27
+or update Django to the newest version. If you are using Python 3.x, be aware
  28
+that your code may need to differ from what is in the tutorial and you should
  29
+continue using the tutorial only if you know what you are doing with Python
  30
+3.x.
26 31
 
27 32
 See :doc:`How to install Django </topics/install>` for advice on how to remove
28 33
 older versions of Django and install a newer one.

0 notes on commit e5c57fe

Please sign in to comment.
Something went wrong with that request. Please try again.