Hi,

I copied the below code from the django documentation (http://
docs.djangoproject.com/en/dev/ref/templates/builtins/), tried it out,
and it is not working for me. Can anyone think of a reason why?

{% if "bc" in "abcdef" %}
  This appears since "bc" is a substring of "abcdef"
{% endif %}


I get the following error:

Exception Type:         TemplateSyntaxError
Exception Value:        'if' statement improperly formatted
Exception Location:     .../django/template/defaulttags.py in do_if, line
822
Python Executable:      /usr/bin/python2.5
Python Version:         2.5.4


Django version 1.1.1
-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to