Hi, In my view, I connected to the mysql server using the cursor object.
I tried to execute the following query: select pincode from pincode where state='Andhra Pradesh' and district='Nellore' and area LIKE '%road%' or '%item%'; The above query is perfectly working when i give it on the mysql command prompt. But Django is giving me the exception "not enough arguments for format string" and its location as "usr/lib/python2.5/ site-packages/django/db/backends/__init__.py in last_executed_query, line 173" I think it is misinterpreting the '%' symbol for formatting. Can anyone help me out of this problem?? 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---