We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9b196d commit ead20a7Copy full SHA for ead20a7
src/cs50/flask.py
@@ -14,12 +14,11 @@ def _wrap_flask(f):
14
15
f.logging.default_handler.formatter.formatException = lambda exc_info: _formatException(*exc_info)
16
17
- if os.getenv("CS50_IDE_TYPE"):
+ if os.getenv("CS50_IDE_TYPE") == "online":
18
from werkzeug.middleware.proxy_fix import ProxyFix
19
_flask_init_before = f.Flask.__init__
20
def _flask_init_after(self, *args, **kwargs):
21
_flask_init_before(self, *args, **kwargs)
22
- self.config["TEMPLATES_AUTO_RELOAD"] = True # Automatically reload templates
23
self.wsgi_app = ProxyFix(self.wsgi_app, x_proto=1) # For HTTPS-to-HTTP proxy
24
f.Flask.__init__ = _flask_init_after
25
0 commit comments