feat: 重启时需要reload config

This commit is contained in:
caoqianming 2023-07-10 10:50:42 +08:00
parent 7af0447928
commit a49fc7abe9
1 changed files with 3 additions and 0 deletions

View File

@ -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