mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #30387 -- Enhanced docs CLI examples in Unit tests and Install Django on Windows.
Follow up to 37c17846ad
.
This commit is contained in:
parent
405c836336
commit
25b5eea8cd
3 changed files with 100 additions and 42 deletions
|
@ -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/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue