Skip to content
This repository was archived by the owner on Oct 27, 2021. It is now read-only.

Commit 464b98b

Browse files
committed
Include an 'extra_requires' for bcrypt
1 parent 47927eb commit 464b98b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

docs/topics/auth/passwords.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ use it Django supports bcrypt with minimal effort.
7676

7777
To use Bcrypt as your default storage algorithm, do the following:
7878

79-
1. Install the `bcrypt library`_ (probably by running ``sudo pip install
80-
bcrypt``, or downloading the library and installing it with ``python
81-
setup.py install``).
79+
1. Install the `bcrypt library`_. This can be done by running ``pip install
80+
django[bcrypt]``, or by downloading the library and installing it with
81+
``python setup.py install``).
8282

8383
2. Modify :setting:`PASSWORD_HASHERS` to list ``BCryptSHA256PasswordHasher``
8484
first. That is, in your settings file, you'd put::

setup.py

+3
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747
entry_points={'console_scripts': [
4848
'django-admin = django.core.management:execute_from_command_line',
4949
]},
50+
extras_require={
51+
"bcrypt": ["bcrypt"],
52+
},
5053
zip_safe=False,
5154
classifiers=[
5255
'Development Status :: 3 - Alpha',

0 commit comments

Comments
 (0)