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 'u
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 wrote:
> On Nov 9, 10:06 pm, xvga wrote:
>
>
>
> > Hi All,
>
> > my question is linked to
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
> views.py
> t
/#writing-unit-tests
> <http://docs.djangoproject.com/en/1.2/topics/testing/#writing-unit-tests>test
> runner looks for tests only in models.py or tests.py of a specific
> application,,but my xyz.py is not present in any of the application.
>
>
>
> On Thu, Nov 18, 2010 at
4 matches
Mail list logo