Re: Making query with LIKE where __contains is not enough.

2010-06-07 Thread Gyanit Singh
s  in your query > like this: > CLASSNAME.objects.raw("select * from table where full_name like > '%%ipod%%nano%%' ") > > On Jun 6, 6:17 pm, Gyanit Singh wrote: > > > Hi All, > > > As start I know there is __contains [http://docs.djangoproject.com/en/

Making query with LIKE where __contains is not enough.

2010-06-06 Thread Gyanit Singh
Hi All, As start I know there is __contains [http://docs.djangoproject.com/en/ dev/ref/models/querysets/#contains]. But it only does LIKE '%word%' query. I want to do LIKE '%word1%word2%' query. for e.g. select * from table where column LIKE '%ipod%nano%'. The raw sql query is trying to replace

SQL query with complex WHERE clause

2009-08-31 Thread Gyanit
Hi All, I don't seem to find good source to help me write a complex where condition in the django. The where condition is generic boolean clause built on top of literals. The literal are just == or != check on a single field. for example ((field1 == 2 and field2 != 5) or field3 == 6). another e

Django and applets

2009-04-21 Thread Gyanit Singh
estrun/simple.HelloWorld.class HTTP/1.1" 404 2245 It is clear that the second request is failing. But why it is doing a request for class and not jar? Any help will be appreciated. gyanit ps: googling didn't help either nor there were earlier post regarding this topic. --~--~-~