Re: How to check a long string has a particular word in it

2010-09-15 Thread Masklinn
On 2010-09-15, at 17:49 , Pradnya wrote: > hey thanks > > but that solution is fine for django 1.2 it's not working in 1.1 > > is ther somting like split function that we can use in html template You should probably just write your own tag (or a filter, that could be more than enough, and it's

Re: How to check a long string has a particular word in it

2010-09-15 Thread Pradnya
hey thanks but that solution is fine for django 1.2 it's not working in 1.1 is ther somting like split function that we can use in html template On Sep 15, 5:00 pm, Piotr Kilczuk wrote: > Hi, > > > eg. I have test.html and I am passing {resut : 'test application for > > test'} > > now I want to

Re: How to check a long string has a particular word in it

2010-09-15 Thread Piotr Kilczuk
>> Wouldn't simply {% if application in resut %} display sth {% endif %} work? >> >> Regards, >> Piotr > > Well there's always the issue that it's not a wordwise test, so you could > have "applicationeering" in your result and it would still match. True :) Regards, Piotr -- You received this m

Re: How to check a long string has a particular word in it

2010-09-15 Thread Masklinn
On 2010-09-15, at 17:30 , Piotr Kilczuk wrote: > Hi, >> eg. I have test.html and I am passing {resut : 'test application for >> test'} >> now I want to check if the world application is there on not in >> result. >> >> Please suggest the simplest method without using filter. or somthing >> similar

Re: How to check a long string has a particular word in it

2010-09-15 Thread Piotr Kilczuk
Hi, > eg. I have test.html and I am passing {resut : 'test application for > test'} > now I want to check if the world application is there on not in > result. > > Please suggest the simplest method without using filter. or somthing > similar to slice Wouldn't simply {% if application in resut %}

How to check a long string has a particular word in it

2010-09-15 Thread Pradnya
Hello, I am using django 1.1 and want to find a word from the string passed to the HTML template. eg. I have test.html and I am passing {resut : 'test application for test'} now I want to check if the world application is there on not in result. Please suggest the simplest method without using f