1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 07:27:04 +00:00

Modify secret key generation

This commit is contained in:
xiez
2012-07-06 14:54:06 +08:00
parent 2bc6ad980d
commit 690249298b
2 changed files with 4 additions and 4 deletions

View File

@@ -237,9 +237,9 @@ LOGIN_URL = SITE_ROOT + 'accounts/login'
SEAFILE_VERSION = '0.9.4'
try:
from secret_key import *
from local_settings import SECRET_KEY
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 *
generate_secret_key(os.path.join(SETTINGS_DIR, 'local_settings.py'))
from local_settings import SECRET_KEY