mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #30367 -- Changed "pip install" to "python -m pip install" in docs, comments and hints.
This commit is contained in:
parent
ceab25bc6d
commit
aed89adad5
26 changed files with 49 additions and 47 deletions
|
@ -86,9 +86,10 @@ use of Argon2 rather than the other algorithms supported by Django.
|
|||
|
||||
To use Argon2 as your default storage algorithm, do the following:
|
||||
|
||||
#. Install the `argon2-cffi library`_. This can be done by running ``pip
|
||||
install django[argon2]``, which is equivalent to ``pip install argon2-cffi``
|
||||
(along with any version requirement from Django's ``setup.py``).
|
||||
#. Install the `argon2-cffi library`_. This can be done by running
|
||||
``python -m pip install django[argon2]``, which is equivalent to
|
||||
``python -m pip install argon2-cffi`` (along with any version requirement
|
||||
from Django's ``setup.py``).
|
||||
|
||||
#. Modify :setting:`PASSWORD_HASHERS` to list ``Argon2PasswordHasher`` first.
|
||||
That is, in your settings file, you'd put::
|
||||
|
@ -115,9 +116,10 @@ use it Django supports bcrypt with minimal effort.
|
|||
|
||||
To use Bcrypt as your default storage algorithm, do the following:
|
||||
|
||||
#. Install the `bcrypt library`_. This can be done by running ``pip install
|
||||
django[bcrypt]``, which is equivalent to ``pip install bcrypt`` (along with
|
||||
any version requirement from Django's ``setup.py``).
|
||||
#. Install the `bcrypt library`_. This can be done by running
|
||||
``python -m pip install django[bcrypt]``, which is equivalent to
|
||||
``python -m pip install bcrypt`` (along with any version requirement from
|
||||
Django's ``setup.py``).
|
||||
|
||||
#. Modify :setting:`PASSWORD_HASHERS` to list ``BCryptSHA256PasswordHasher``
|
||||
first. That is, in your settings file, you'd put::
|
||||
|
|
|
@ -155,7 +155,7 @@ This is the recommended way to install Django.
|
|||
|
||||
.. console::
|
||||
|
||||
$ pip install Django
|
||||
$ python -m pip install Django
|
||||
|
||||
.. _pip: https://pip.pypa.io/
|
||||
.. _virtualenv: https://virtualenv.pypa.io/
|
||||
|
@ -214,7 +214,7 @@ latest bug fixes and improvements, follow these instructions:
|
|||
|
||||
.. console::
|
||||
|
||||
$ pip install -e django/
|
||||
$ python -m pip install -e django/
|
||||
|
||||
This will make Django's code importable, and will also make the
|
||||
``django-admin`` utility command available. In other words, you're all
|
||||
|
|
|
@ -385,7 +385,7 @@ Requires Jinja2_ to be installed:
|
|||
|
||||
.. console::
|
||||
|
||||
$ pip install Jinja2
|
||||
$ python -m pip install Jinja2
|
||||
|
||||
Set :setting:`BACKEND <TEMPLATES-BACKEND>` to
|
||||
``'django.template.backends.jinja2.Jinja2'`` to configure a Jinja2_ engine.
|
||||
|
|
|
@ -920,7 +920,7 @@ Python path:
|
|||
|
||||
.. console::
|
||||
|
||||
$ pip install selenium
|
||||
$ python -m pip install selenium
|
||||
|
||||
Then, add a ``LiveServerTestCase``-based test to your app's tests module
|
||||
(for example: ``myapp/tests.py``). For this example, we'll assume you're using
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue