
Auto update to render changes of a template file in a Flask app
While the app is running in production mode, I noticed that whenever I changed something in a .html file it would not load the change immediately. I would have to manually restart the whole app to see the changes. I did a search and found a fix for this. Add the following line in the __init__.py file (without ""): "app.config['TEMPLATES_AUTO_RELOAD'] = True" You won't see the server auto-restart on a template change like it does in debug mode, but it does update the template and renders it as soon as you save the file.