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:
Sebastian Reyes Espinosa 2017-02-13 13:37:36 -05:00 committed by Daniel Roy Greenfeld
parent 65611f14ea
commit e4d1f4dae6

View File

@ -47,7 +47,7 @@ Generate a secret key for yourself, eg like this:
.. 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.