Hello,
I want to write a custom filter.
I have a file called markdown.py inside my application directory with:
register = Library()
@register.filter
def markdown(value, arg):
print type(value)
return value
settings.py contains:
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'xgm.Blog.markdown', # <---
'xgm.AbbrDB',
'xgm.Blog',
)
now I want to load the filter lib in my template:
{% load markdown %}
which produces an error:
'markdown' is not a valid tag library: Could not load template library
from django.templatetags.markdown, No module named markdown
What is wrong here?
Thanks,
Florian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---