From e4d1f4dae6460188402db4ba0c0bfbd9abfcdad1 Mon Sep 17 00:00:00 2001 From: Sebastian Reyes Espinosa Date: Mon, 13 Feb 2017 13:37:36 -0500 Subject: [PATCH] An small pythonic approach to password (#949) Providing a more pythonic line for password generation using for that the string content. --- docs/deployment-on-pythonanywhere.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/deployment-on-pythonanywhere.rst b/docs/deployment-on-pythonanywhere.rst index 82399eb1..b99633a3 100644 --- a/docs/deployment-on-pythonanywhere.rst +++ b/docs/deployment-on-pythonanywhere.rst @@ -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.