Django cannot find my templatetags, even though it's in INSTALLED_APPS and has a

Posted by Vivian Short on Stack Overflow See other posts from Stack Overflow or by Vivian Short
Published on 2010-05-06T01:19:21Z Indexed on 2010/05/06 1:28 UTC
Read the original article Hit count: 912

I just installed django-compress ( into /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/compress.

I added 'compress' to INSTALLED_APPS.

In my template file, I wrote {% load compressed %}. I got the error:

'compressed' is not a valid tag library: Could not load template library from django.templatetags.compressed, No module named compressed

I verified that there is an in compress, as well as in compress/templatetags/. I tried putting the compress directory into PYTHONPATH. I ran python and wrote "import compress" and that worked.

Your suggestions would be very appreciated! What else can I try?

© Stack Overflow or respective owner

Related posts about django

Related posts about django-templates