diff --git a/server/settings.py b/server/settings.py index 0b5cf7eb..04f95882 100755 --- a/server/settings.py +++ b/server/settings.py @@ -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