Skip to content
Advertisement

Reload Flask app when template file changes under Linux

I am developing a flask application under Linux, and i’m suffering when i make any changes to template files.

Actually i well configured my app to reload on template changes using

JavaScript

PS: when i develop under Windows templates are reloading normally.


EDIT

I am using the built in server, and i run my app like this :

JavaScript

Here is my configuration class

JavaScript

About cache i am using the cache extension by it’s disabled. Please check the config file.

Thanks,

Advertisement

Answer

I managed to fix my issue by adding my template folder to extra_files parameter of Flask app

Here is how :

JavaScript

Hope this will help someone someday 🙂

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement