Fix an issue where we ignored the secret key during install

This commit is contained in:
Matthew Jones
2017-09-18 15:11:04 -04:00
parent 87b58e6bc2
commit f5ccb51ef2
4 changed files with 6 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ import os
def get_secret():
if os.path.exists("/etc/tower/SECRET_KEY"):
return file('/etc/tower/SECRET_KEY', 'rb').read().strip()
return os.getenv("SECRET_KEY", "privateawx"),
return os.getenv("SECRET_KEY", "privateawx")
ADMINS = ()