Cheers, I've been looking at Lost-theories code lately, and actually, after looking at the Jeff's post, it seems that the smartypants filter is a filter that he modifie and dropped in the python path: """ As for SmartyPants -- there is a Python port. I've found it to be not quite as perfect as the original Perl version, but it basically works. Just Google for it. You'd install it the same way (drop smartypants.py in your Python path). """
It also seems to be a hack of the django source: """ The "markup" template tag that is included with Django doesn't support SmartyPants by default. It handles Markdown, Textile, and restructured text. I hacked the markup template tag to include SmartyPants support. """ That's why it does not work with your code. Hope it helps, G On 9/13/06, Benjamin Ward <[EMAIL PROTECTED]> wrote: > > > Hey People, > > I'm a Django newbie playing around with Jeff Crofts Lost-theories > code. I get this page displayed error: > > Exception Type: TemplateSyntaxError > Exception Value: Invalid filter: 'smartypants' > Exception Location: /home/bward/django/django_src/django/template/ > __init__.py in find_filter, line 329 > > In template /home/bward/django/django_templates/losttheories/blog/ > entry_detail.html, error at line 3 > > 1 {% extends "base.html" %} > 2 {% block title %}{{ entry.title }}{% endblock%} > 3>> {% block content %} > 4 {% load markup %} > 5 <p class="paginator"> > 6 {% if theory.get_previous_by_created %} > 7 <a href="{{ theory.get_previous_by_created.get_absolute_url }}" > title="{{ theory.get_previous_by_created.title }}">« Previous</a> > 8 {% endif %} > 9 {% if theory.get_next_by_created %} > 10 • <a > href="{{ theory.get_next_by_created.get_absolute_url }}" > title="{{ theory.get_next_by_created.title }}">Next »</a> > 11 {% endif %} > 12 </p> > 13 {% load markup %} > > > I'm pretty sure i have the latest smartypants.py in my $PYTHONPATH. > > Any ideas what am i doing wrong? I did search around for some clues > but had no luck getting a solution. > > I don't really understand the error either, because the highlighted > line 3 is a standard template tag no? : > > {% block content %} > > thanks in advance, > Ben > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---