[Fixed]-Custom template tag library is not getting loaded when placed in a directory with undescore in name

1👍

From the docs https://docs.djangoproject.com/en/1.10/howto/custom-template-tags/#code-layout

The app should contain a templatetags directory, at the same level as models.py, views.py, etc. If this doesn’t already exist, create it – don’t forget the __init__.py file to ensure the directory is treated as a Python package.

Leave a comment