>>> On Fri, Nov 18, 2011 at 8:20 AM, Kayode Odeyemi <drey...@gmail.com> wrote: >>> > Hello friends, >>> > >>> > I'm having a deep Django-MySQLDB error and I'm doing some debugging to >>> > trace exactly where the problem is. It seems to me that this is very >>> > related >>> > to MySQLDB >>> > cursor implementaton. >>> > >>> > What I want to do is to run the raw sql from the interactive mode like >>> > this: >>> > >>> > import MySQLdb >>> > db=MySQLdb.connect(passwd="pass",db="dname") >>> > c=db.cursor() >>> > max_price=5 >>> > c.execute(RAW_SQL_HERE)
Why not execute the SQL using Django, as documented here? https://docs.djangoproject.com/en/dev/topics/db/sql/#executing-custom-sql-directly Chris -- 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.