What I have learned today about custom template filters in django

If you make changes to a custom template filter, or, in some cases, even a function that passes data to a custom filter, and the filter stops working, restart your web server. That should reload the filter into the template cache. Takes me a day to realise that usually. Now I’ve written it down I shouldn’t forget. When I can find my glasses. Oh, here they are, on my face.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s