From 21f5637a651729ef3f3170e8fa4909f9954d3313 Mon Sep 17 00:00:00 2001 From: Sydney Henry Date: Tue, 8 Dec 2015 22:10:46 -0700 Subject: [PATCH] SECRET_KEY gen to short when `heroku run python manage.py check --deploy` is ran this error occurs ?: (security.W009) Your SECRET_KEY has less than 50 characters or less than 5 unique characters. Please generate a long and random SECRET_KEY, otherwise many of Django's security-critical features will be vulnerable to attack. changing the num of ran to a larger number fixes this issue --- docs/deployment-on-heroku.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/deployment-on-heroku.rst b/docs/deployment-on-heroku.rst index d0d5abc9..c681d508 100644 --- a/docs/deployment-on-heroku.rst +++ b/docs/deployment-on-heroku.rst @@ -16,8 +16,8 @@ You can either push the 'deploy' button in your generated README.rst or run thes heroku addons:create heroku-redis:hobby-dev heroku addons:create mailgun - heroku config:set DJANGO_ADMIN_URL=`openssl rand -base64 32` - heroku config:set DJANGO_SECRET_KEY=`openssl rand -base64 32` + heroku config:set DJANGO_ADMIN_URL=`openssl rand -base64 64` + heroku config:set DJANGO_SECRET_KEY=`openssl rand -base64 64` heroku config:set DJANGO_SETTINGS_MODULE='config.settings.production' heroku config:set DJANGO_ALLOWED_HOSTS='.herokuapp.com'