Django templatetag detection for classytags?

I'm using a class-based system for templatetags, http://django-classy-tags.readthedocs.org/en/latest/index.html. The default way template tags are detected for Django doesn't seem to be able to handle classed based tags. I test a hack where I register an empty function first and then register the classy tag and that tricks PyCharm into pointing to the empty function, and it at least thinks the templatetag exists, but I'm hoping there is a better way. Any ideas?

1 comment

Not really. PyCharm's custom tag loading scans the templatetags module for specific functions, and recognizes only the Django standard ways to register tags.

0

Please sign in to leave a comment.