diff options
| author | Donald Stufft <donald@stufft.io> | 2014-04-17 15:59:37 -0400 |
|---|---|---|
| committer | Donald Stufft <donald@stufft.io> | 2014-04-17 15:59:37 -0400 |
| commit | 438e6fe63dcead630c7068c676901847fa3f1a9d (patch) | |
| tree | 5e5440da84ce2e126cbc11a78451a6e85df7f36c | |
| parent | 3cea917e3e8a26b5b701c160f4f6e03b1b85cf84 (diff) | |
| parent | 0e27882b3a51a09edf2ce0e8ca1a4480aea335b5 (diff) | |
Merge pull request #2583 from alex/extras-bcrypt
Include an 'extra_requires' for bcrypt
| -rw-r--r-- | docs/topics/auth/passwords.txt | 6 | ||||
| -rw-r--r-- | setup.py | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/docs/topics/auth/passwords.txt b/docs/topics/auth/passwords.txt index 7ddbc63b9a..df070706f4 100644 --- a/docs/topics/auth/passwords.txt +++ b/docs/topics/auth/passwords.txt @@ -76,9 +76,9 @@ use it Django supports bcrypt with minimal effort. To use Bcrypt as your default storage algorithm, do the following: -1. Install the `bcrypt library`_ (probably by running ``sudo pip install - bcrypt``, or downloading the library and installing it with ``python - setup.py install``). +1. Install the `bcrypt library`_. This can be done by running ``pip install + django[bcrypt]``, or by downloading the library and installing it with + ``python setup.py install``. 2. Modify :setting:`PASSWORD_HASHERS` to list ``BCryptSHA256PasswordHasher`` first. That is, in your settings file, you'd put:: @@ -47,6 +47,9 @@ setup( entry_points={'console_scripts': [ 'django-admin = django.core.management:execute_from_command_line', ]}, + extras_require={ + "bcrypt": ["bcrypt"], + }, zip_safe=False, classifiers=[ 'Development Status :: 3 - Alpha', |
