mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-01-24 08:14:13 +03:00
An small pythonic approach to password (#949)
Providing a more pythonic line for password generation using for that the string content.
This commit is contained in:
parent
65611f14ea
commit
e4d1f4dae6
|
@ -47,7 +47,7 @@ Generate a secret key for yourself, eg like this:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
python -c 'import random; print("".join(random.SystemRandom().choice("abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)") for _ in range(50)))'
|
python -c 'import random; print("".join(random.SystemRandom().choice(string.digits + string.ascii_letters + string.punctuation) for _ in range(50)))'
|
||||||
|
|
||||||
Make a note of it, since we'll need it here in the console and later on in the web app config tab.
|
Make a note of it, since we'll need it here in the console and later on in the web app config tab.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user