So I was just working on a project and wanted to create my own template filter to help me do stuffs. And I looked at Django's documentation, on how to create a custom template filters. I followed all the instructions but too bad it didn't work :( and gave me the
TemplateSyntaxError at my_app/ and also with
Invalid Filter: 'my_filter'
Then I looked on the internet and read some answers from stack overflow but still couldn't get things to work. In the end, I found a fix to the problem.
In addition to create a templatetags directory inside my ... Read more