Move SECRET_KEY to a file secret.key

This commit is contained in:
Gergely Polonkai 2014-06-14 17:14:07 +00:00
parent ae4af3669b
commit 3dc0f26179
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
secret.key
*.pyc *.pyc
*.sw? *.sw?

View File

@ -88,7 +88,8 @@ STATICFILES_FINDERS = (
) )
# Make this unique, and don't share it with anybody. # 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. # List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = ( TEMPLATE_LOADERS = (