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:
@@ -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
|
||||
|
Reference in New Issue
Block a user