You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Environment Linux, Mageia 7 x86_64
Mako assumes incorrectly that if a .html.py file exists in the specified temporary directory:
tmpl = Template(filename='weather.html', module_directory='/tmp/mako_modules')
that the template does not need to be re-compiled. I have been testing a development version of a python script alongside the production version, with a slight difference in the template. Mako just uses whichever version was last compiled.
The text was updated successfully, but these errors were encountered:
I believe this needs to be documented better how this works and that a deployment should purge or at least refresh the modules. I just lost quite some time over a bad cache: The scenario here is an upgrade not of my template files, but of the the ecosystem around it, i.e. going from Python 2 to 3 and upgrading Mako in the run. Needless to say, this failed, since the old cache used Python 2 features not available in 3.
Environment Linux, Mageia 7 x86_64
Mako assumes incorrectly that if a .html.py file exists in the specified temporary directory:
tmpl = Template(filename='weather.html', module_directory='/tmp/mako_modules')
that the template does not need to be re-compiled. I have been testing a development version of a python script alongside the production version, with a slight difference in the template. Mako just uses whichever version was last compiled.
The text was updated successfully, but these errors were encountered: