feat: 重启时需要reload config
This commit is contained in:
parent
7af0447928
commit
a49fc7abe9
|
@ -54,6 +54,9 @@ def update_sysconfig(new_dict):
|
|||
f.write(json.dumps(config, indent=4, ensure_ascii=False).encode('utf-8'))
|
||||
cache.set('system_config', config)
|
||||
|
||||
# 重启时需要reload
|
||||
get_sysconfig(reload=True)
|
||||
|
||||
# SECURITY WARNING: keep the secret key used in production secret!
|
||||
SECRET_KEY = conf.SECRET_KEY
|
||||
|
||||
|
|
Loading…
Reference in New Issue