diff --git a/docs/3-deployment/deployment-on-pythonanywhere.rst b/docs/3-deployment/deployment-on-pythonanywhere.rst index 592b8be1a..3518f3e5e 100644 --- a/docs/3-deployment/deployment-on-pythonanywhere.rst +++ b/docs/3-deployment/deployment-on-pythonanywhere.rst @@ -44,7 +44,7 @@ Generate a secret key for yourself, eg like this: .. code-block:: bash - python -c 'import random;import string; print("".join(random.SystemRandom().choice(string.digits + string.ascii_letters + string.punctuation) for _ in range(50)))' + python -c 'import secrets;import string; print("".join(secrets.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.