I've just added a module with new template filters
myapp/templatetags/__init__.py
myapp/templatetags/newtags.py
and tried to load it:
{% load newtags.py %}
Then, I got the following error:
TemplateSyntaxError: 'newtags' is not a valid tag library
I was trying everything and it didn't work. The I found this question on StackOverflow.
TLDR: Restart the development server, then the new tags file gets loaded.