diff options
Diffstat (limited to 'halfnarp2.py')
-rwxr-xr-x | halfnarp2.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/halfnarp2.py b/halfnarp2.py index a6f4d1c..f13f967 100755 --- a/halfnarp2.py +++ b/halfnarp2.py | |||
@@ -268,7 +268,12 @@ if __name__ == "__main__": | |||
268 | ) | 268 | ) |
269 | app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False | 269 | app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False |
270 | app.config["SERVER_NAME"] = config.get("server-name", "localhost") | 270 | app.config["SERVER_NAME"] = config.get("server-name", "localhost") |
271 | app.config["SECRET_KEY"] = "<YOUR SERVER SECRET HERE>" | 271 | app.config["SECRET_KEY"] = config.get("server-secret", "<YOUR SERVER SECRET HERE>") |
272 | |||
273 | if app.config["SECRET_KEY"] == "<YOUR SERVER SECRET HERE>": | ||
274 | print ("You must set the server-secret in your config.json") | ||
275 | sys.exit(1) | ||
276 | |||
272 | app.jinja_env.trim_blocks = True | 277 | app.jinja_env.trim_blocks = True |
273 | app.jinja_env.lstrip_blocks = True | 278 | app.jinja_env.lstrip_blocks = True |
274 | CORS() | 279 | CORS() |