Skip to content

Commit 115d522

Browse files
committed
Fixed django#18167 -- Gave advice on checking Django version in the tutorial.
Thanks smuss for the initial patch.
1 parent cafa5bf commit 115d522

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

docs/intro/tutorial01.txt

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,19 @@ It'll consist of two parts:
1313
* An admin site that lets you add, change and delete polls.
1414

1515
We'll assume you have :doc:`Django installed </intro/install>` already. You can
16-
tell Django is installed by running the Python interactive interpreter and
17-
typing ``import django``. If that command runs successfully, with no errors,
18-
Django is installed.
16+
tell Django is installed and which version by running the following command:
17+
18+
.. code-block:: bash
19+
20+
python -c "import django; print(django.get_version())"
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.
26+
27+
See :doc:`How to install Django </topics/install>` for advice on how to remove
28+
older versions of Django and install a newer one.
1929

2030
.. admonition:: Where to get help:
2131

0 commit comments

Comments
 (0)