From 78454995f838ae2507fc1421d5181b6324fb273e Mon Sep 17 00:00:00 2001 From: Milo Casagrande Date: Mon, 20 Jan 2014 14:44:27 +0100 Subject: Fixed problem with secret key. Change-Id: I334226bf6a713c2f4a24e0bdbdc38a8294ae1272 --- linaroroadmap/local_settings.py.dev | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'linaroroadmap') diff --git a/linaroroadmap/local_settings.py.dev b/linaroroadmap/local_settings.py.dev index 57c3d0c..020f7e4 100644 --- a/linaroroadmap/local_settings.py.dev +++ b/linaroroadmap/local_settings.py.dev @@ -20,11 +20,10 @@ AUTHENTICATION_BACKENDS = ( 'crowd.backends.CrowdBackend', ) -char_selection = string.ascii_letters = string.digits +char_selection = string.ascii_letters + string.digits char_selection += '!@#$%^&*(-_=+)' -secret_key = ''.join(random.sample(char_selection, 50)) -SECRET_KEY = '{0}'.format(secret_key) +SECRET_KEY = '{0}'.format(''.join(random.sample(char_selection, 50))) STATIC_ROOT = '/var/www/roadmap.linaro.org/static/' DEBUG = False -- cgit v1.2.3