From 115d522c84d85c99b2a154e29174d95380eaf0c1 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Tue, 22 May 2012 13:43:58 +0200 Subject: [PATCH] Fixed #18167 -- Gave advice on checking Django version in the tutorial. Thanks smuss for the initial patch. --- docs/intro/tutorial01.txt | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/docs/intro/tutorial01.txt b/docs/intro/tutorial01.txt index d8258c00f8..b42806a484 100644 --- a/docs/intro/tutorial01.txt +++ b/docs/intro/tutorial01.txt @@ -13,9 +13,19 @@ It'll consist of two parts: * An admin site that lets you add, change and delete polls. We'll assume you have :doc:`Django installed ` already. You can -tell Django is installed by running the Python interactive interpreter and -typing ``import django``. If that command runs successfully, with no errors, -Django is installed. +tell Django is installed and which version by running the following command: + +.. code-block:: bash + + python -c "import django; print(django.get_version())" + +You should see either the version of your Django installation or an error +telling "No module named django". Check also that the version number matches +the version of this tutorial. If they don't match, you can refer to the +tutorial for your version of Django or update Django to the newest version. + +See :doc:`How to install Django ` for advice on how to remove +older versions of Django and install a newer one. .. admonition:: Where to get help: