Commit 438e6fe6 authored by Donald Stufft's avatar Donald Stufft
Browse files

Merge pull request #2583 from alex/extras-bcrypt

Include an 'extra_requires' for bcrypt
parents 3cea917e 0e27882b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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::
+3 −0
Original line number Diff line number Diff line
@@ -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',