[Django]-Django: nested custom template tags

9👍

They are definitely allowed, but that error can come up because your custom tag is not properly defined, located or loaded.

Make sure all your custom tags are located in your app/templatetags directory and are loaded properly, usually using the @register decorator.

Reference: https://docs.djangoproject.com/en/dev/howto/custom-template-tags/#registering-custom-filters

Leave a comment