.secret should be in DATA_DIR
This commit is contained in:
parent
04fb6e3c4e
commit
4a3f1d086b
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ if not os.path.exists(RENDER_ROOT):
|
|||
if config.has_option('django', 'secret'):
|
||||
SECRET_KEY = config.get('django', 'secret')
|
||||
else:
|
||||
SECRET_FILE = os.path.join(BASE_DIR, '.secret')
|
||||
SECRET_FILE = os.path.join(DATA_DIR, '.secret')
|
||||
if os.path.exists(SECRET_FILE):
|
||||
with open(SECRET_FILE, 'r') as f:
|
||||
SECRET_KEY = f.read().strip()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue