Django And The Disappearing Template Tags
If you are defining custom template tags, don’t put them in a file named log.py. You’ll be able to {% load log %} fine in your template, but you won’t be able to use your tags. No, this isn’t documented anywhere.
I suspect it’s because the admin interface also defines custom tags in a file named log.py and that you should avoid duplicating any template tags filename in your INSTALLED_APPS.
This public service announcement has been brought to you by a wasted hour of my life.
Want more? I'm not as good at forgetting to update @pushcx on Twitter.
Conversation (2)
Jump to comment form | comments rss [?]Add this link to your feed reader to watch for new replies to this post. | trackback uri [?]Trackback this link in a blog post to create a comment here linking to your post.