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
Source:stackexchange.com