Skip to content

Commit ead20a7

Browse files
committed
removed TEMPLATES_AUTO_RELOAD
1 parent b9b196d commit ead20a7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cs50/flask.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@ def _wrap_flask(f):
1414

1515
f.logging.default_handler.formatter.formatException = lambda exc_info: _formatException(*exc_info)
1616

17-
if os.getenv("CS50_IDE_TYPE"):
17+
if os.getenv("CS50_IDE_TYPE") == "online":
1818
from werkzeug.middleware.proxy_fix import ProxyFix
1919
_flask_init_before = f.Flask.__init__
2020
def _flask_init_after(self, *args, **kwargs):
2121
_flask_init_before(self, *args, **kwargs)
22-
self.config["TEMPLATES_AUTO_RELOAD"] = True # Automatically reload templates
2322
self.wsgi_app = ProxyFix(self.wsgi_app, x_proto=1) # For HTTPS-to-HTTP proxy
2423
f.Flask.__init__ = _flask_init_after
2524

0 commit comments

Comments
 (0)