From c72ac58300857ab60c242215b9c513eb9d5da9bb Mon Sep 17 00:00:00 2001 From: Audrey Roy Greenfeld Date: Mon, 13 Feb 2017 10:39:43 -0800 Subject: [PATCH] Add missing string import --- docs/deployment-on-pythonanywhere.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/deployment-on-pythonanywhere.rst b/docs/deployment-on-pythonanywhere.rst index b99633a3c..93f189601 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(string.digits + string.ascii_letters + string.punctuation) for _ in range(50)))' + python -c 'import random;import string; 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. @@ -179,5 +179,3 @@ For subsequent deployments, the procedure is much simpler. In a Bash console: And then go to the Web tab and hit **Reload** **TIP:** *if you're really keen, you can set up git-push based deployments: https://blog.pythonanywhere.com/87/* - -