summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2012-05-22 13:43:58 +0200
committerClaude Paroz <claude@2xlibre.net>2012-05-22 13:43:58 +0200
commit115d522c84d85c99b2a154e29174d95380eaf0c1 (patch)
treed8b4a25171f952ea54599956f0bd2589a6a947a7 /docs
parentcafa5bf4f48df500b7c191b01f4ae73f527e6166 (diff)
Fixed #18167 -- Gave advice on checking Django version in the tutorial.
Thanks smuss for the initial patch.
Diffstat (limited to 'docs')
-rw-r--r--docs/intro/tutorial01.txt16
1 files 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 </intro/install>` 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 </topics/install>` for advice on how to remove
+older versions of Django and install a newer one.
.. admonition:: Where to get help: