From 3dc0f2617948fbb9d6d84c8b6bb6fac141749bcb Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sat, 14 Jun 2014 17:14:07 +0000 Subject: [PATCH] Move SECRET_KEY to a file secret.key --- .gitignore | 1 + gergelypolonkaiweb/settings.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index feceb11..1d858a2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +secret.key *.pyc *.sw? diff --git a/gergelypolonkaiweb/settings.py b/gergelypolonkaiweb/settings.py index 6959923..194f7dd 100644 --- a/gergelypolonkaiweb/settings.py +++ b/gergelypolonkaiweb/settings.py @@ -88,7 +88,8 @@ STATICFILES_FINDERS = ( ) # Make this unique, and don't share it with anybody. -SECRET_KEY = 'ol#oly77qotgh%47ylflf3wwtr^(b5@=nhd8&@9=!q@*r34w#l' +with open(SITE_ROOT + os.path.sep + 'secret.key') as f: + SECRET_KEY = f.read().strip() # List of callables that know how to import templates from various sources. TEMPLATE_LOADERS = (