1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 23:29:49 +00:00

Add secret key generator

This commit is contained in:
xiez
2012-07-05 21:07:49 +08:00
parent f5f076a3f1
commit f99250938e
4 changed files with 42 additions and 6 deletions

View File

@@ -235,3 +235,11 @@ else:
LOGIN_URL = SITE_ROOT + 'accounts/login'
SEAFILE_VERSION = '0.9.4'
try:
from secret_key import *
except ImportError:
SETTINGS_DIR = os.path.abspath(os.path.dirname(__file__))
from secret_key_generator import generate_secret_key
generate_secret_key(os.path.join(SETTINGS_DIR, 'secret_key.py'))
from secret_key import *