from django.contrib.markup.templatetags import markup
into my views.py file for my app. Then I could say someting like:
article.content|restructuredtext
in my .html file, and it worked.
Today, I moved to the development version of django using svn. I have
everything working like before except the restructuredtext filter. I
have tried the same as above, and also changing the import line to
from django.contrib.markup.templatetags.markup import restructuredtext
But that still doesn't work. Any ideas?
Thanks
Do you have the tag {% load markup %} in your template?
--
"May the forces of evil become confused on the way to your house."
-- George Carlin
I had to copy django/contrib/markup/templatetags/markup.py to
django/templatetags and the with the {% load markup %} line the filter
works now.
Thank you for your help!
You don't have to do that either.
Just put "django.contrib.markup" in your INSTALLED_APPS setting, then
{% load markup %} will work. See http://www.djangoproject.com/
documentation/templates/#custom-tag-and-filter-libraries for more
information.
Jacob
Thanks again!