Re: testing django applications

2010-11-18 Thread xvga
> > On Thu, Nov 18, 2010 at 4:42 PM, xvga <vgri...@gmail.com> wrote: > > Hi Girish, > > > why don't you put tests.py in the same dir where xyz.py is? > > > On Nov 18, 11:52 am, girish shabadimath <girishmss.1...@gmail.com> > > wrote: > > > Hi a

Re: testing django applications

2010-11-18 Thread xvga
Hi Girish, why don't you put tests.py in the same dir where xyz.py is? On Nov 18, 11:52 am, girish shabadimath wrote: > Hi all, > > im working on a django project XXX, > > the directory structure is as follows: > > - project XXX >       -abc >          models.py >    

Re: Making MODEL.objects.raw() query with LIKE input%

2010-11-10 Thread xvga
Daniel, thank you very much :) You are right, that was just an example query > user_input = "%s%%" % user_input did the trick. On Nov 10, 11:28 am, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Nov 9, 10:06 pm, xvga <vgri...@gmail.com> wrote: > > > >

Making MODEL.objects.raw() query with LIKE input%

2010-11-09 Thread xvga
Hi All, my question is linked to this thread, so I post here I need to run sql query with LIKE and % in the end - I have tried %% and : CLASSNAME.objects.raw("select * from table where full_name like %s%% ", [user_input]) this is what I get as sql: select * from table where full_name LIKE