[1.9.x] Fixed #26829 -- Simplified version detection command in tutorial
Backport of ed1c15d8fbc17e60621ca56f67340987531e647d from master
This commit is contained in:
parent
8af6923e9d
commit
bcce93b2c5
@ -17,7 +17,7 @@ tell Django is installed and which version by running the following command:
|
|||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ python -c "import django; print(django.get_version())"
|
$ python -m django --version
|
||||||
|
|
||||||
If Django is installed, you should see the version of your installation. If it
|
If Django is installed, you should see the version of your installation. If it
|
||||||
isn't, you'll get an error telling "No module named django".
|
isn't, you'll get an error telling "No module named django".
|
||||||
|
Loading…
x
Reference in New Issue
Block a user