Hoody.

Can anyone tell me why I can use this code with MySQLdb in python, but
not in Django?

  cursor=db.cursor()
  cursor.execute("select date_add('2006-2-24',INTERVAL 1 Month) as
newDate")

django error is: ValueError, unpack list of wrong size

I am completely stumped.

Alternately, is there a way within Django to do this?

ie. a way to change a datefield by a user-defined number of years,
months, or days....?
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to