Django — How to have a project wide templatetags shared among all my apps in that project

I don’t know if this is the right way to do it, but in my Django apps, I always place common template tags in a lib “app”, like so:

proj/
    __init__.py
    lib/
        __init__.py
        templatetags/
            __init__.py
            common_tags.py

Just make sure to add the lib app to your list of INSTALLED_APPS in settings.py.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)