I guess it was a little confusing how I formulated my problem. I just
try again. Sorry for that.

In Python what I want to do would look like the following:
""""
item1 = '/test/something/'
item2 = '/test/somethingelse/'
""""
if item2.startswith(item1):
    do_the_trick()


Now since Django has this nice template language I need to do
something like that:
{% ifstartswith item2 item1 %}
    ...do the trick
{% endifstartswith %}

is that possible?
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to