Wednesday, September 15, 2010

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

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 filter. or somthing
similar to slice


Thanks

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate