On 6/16/06, Dan M <[EMAIL PROTECTED]> wrote: > http://django.pastebin.com/713980 contains my models.py and the > traceback when my Python script dies. It parses the data file fine, and > it does the first 2 get_or_creates just fine, but dies on the 3rd one. > The last line of the traceback says: > _mysql_exceptions.OperationalError: (1241, 'Operand should contain 1 > column(s)') > which is very weird - no way is this class supposed to have just one column.
Hey Dan, To debug this, it would help to see the underlying SQL Django is executing. Here's how to do that: http://www.djangoproject.com/documentation/faq/#how-can-i-see-the-raw-sql-queries-django-is-running Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---