From 0e7005d3d18100c4dec0d440467a7ea310dc0e2c Mon Sep 17 00:00:00 2001 From: MaziyarMK Date: Sun, 8 Apr 2018 10:04:31 +0400 Subject: [PATCH] Fixes heroku deployment error Specifically fixes this confusing error: ModuleNotFoundError: No module named "'config" The single quotes are not required in the heroku config vars. --- docs/deployment-on-heroku.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/deployment-on-heroku.rst b/docs/deployment-on-heroku.rst index e770219b..7ce94d05 100644 --- a/docs/deployment-on-heroku.rst +++ b/docs/deployment-on-heroku.rst @@ -20,7 +20,7 @@ Run these commands to deploy the project to Heroku: # Generating a 32 character-long random string without any of the visually similiar characters "IOl01": heroku config:set DJANGO_ADMIN_URL="^$(openssl rand -base64 4096 | tr -dc 'A-HJ-NP-Za-km-z2-9' | head -c 32)/" heroku config:set DJANGO_SECRET_KEY="$(openssl rand -base64 64)" - heroku config:set DJANGO_SETTINGS_MODULE='config.settings.production' + heroku config:set DJANGO_SETTINGS_MODULE=config.settings.production heroku config:set DJANGO_ALLOWED_HOSTS='.herokuapp.com' heroku config:set DJANGO_AWS_ACCESS_KEY_ID=YOUR_AWS_ID_HERE