From 0cd4fc86556586747f8eab3658570a29686bef19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 21 Feb 2017 13:21:42 +0100 Subject: [PATCH] Enable template auto reload by default We have our own cache, and that would get confused by not allowing a reload of the templates at runtime, which Flask 0.11+ will not allow anymore unless this setting is set to True. --- src/octoprint/server/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/octoprint/server/__init__.py b/src/octoprint/server/__init__.py index a574776b..4f6f2cc3 100644 --- a/src/octoprint/server/__init__.py +++ b/src/octoprint/server/__init__.py @@ -617,6 +617,7 @@ class Server(object): s = settings() app.debug = self._debug + app.config["TEMPLATES_AUTO_RELOAD"] = True secret_key = s.get(["server", "secretKey"]) if not secret_key: