Fixed #30387 -- Enhanced docs CLI examples in Unit tests and Install Django on Windows.

Follow up to 37c17846ad.
This commit is contained in:
Ramiro Morales 2019-04-19 16:15:38 -03:00 committed by Mariusz Felisiak
parent 405c836336
commit 25b5eea8cd
3 changed files with 100 additions and 42 deletions

View file

@ -150,6 +150,10 @@ If the ``source`` command is not available, you can try using a dot instead:
$ . ~/.virtualenvs/djangodev/bin/activate
You have to activate the virtual environment whenever you open a new
terminal window. virtualenvwrapper__ is a useful tool for making this
more convenient.
.. admonition:: For Windows users
To activate your virtual environment on Windows, run:
@ -158,9 +162,12 @@ If the ``source`` command is not available, you can try using a dot instead:
...\> %HOMEPATH%\.virtualenvs\djangodev\Scripts\activate.bat
You have to activate the virtual environment whenever you open a new
terminal window. virtualenvwrapper__ is a useful tool for making this
more convenient.
or you can install :ref:`a Windows version of virtualenvwrapper
<virtualenvwrapper-win>` and then use:
.. code-block:: doscon
...\> workon djangodev
__ https://virtualenvwrapper.readthedocs.io/en/latest/