How to run Flask without caching templates?

flask, python, wsgi

Solution

You need to enable the debug mode in your app config: `app.debug = True` or `app.config['DEBUG'] = True`. Just make sure you enable this flag only in development since it can have performance and security implications. You can find more details in Flask documentation.

Problem

I have a `Flask` app running with `python-socketio` and `eventlet`. ``` if __name__ == '__main__': import eventlet import eventlet.wsgi eventlet.wsgi.server(eventlet.listen(('', 5000)), app) ``` Every time I change anything in the templates it does not affect the app and I have to restart the app (`CTRL+C` and then again `python app.py`). How can I disable this "cache" or rather enable template reloading?

Original source

Related problems