I periodically get this problem where all of a sudden mako is using old versions of templates, and it’s not until I manually go and update the template files that they’ll use the current version. I’m using
./manage.py runserver
I think it’s usually after I update using source control, but it’s intermittent, and I can’t reliably reproduce the problem.
In your settings.py file you can use the MAKO_TEMPLATE_OPTS setting to specify where the temporary compiled templates go.
This will put them somewhere like /tmp/dsmith/mako
You can use different folders for different projects to make sure they don’t overlap. Also, if you notice the problem after a source control update or something you can just clear out the cached folder.