Generally when I get an error similar to that(not necessarily when using django) It means that I have violated some field that has a unique constraint. Look in you database and see if you have a constrain on that table.
On Dec 6, 2:55 pm, jc <[email protected]> wrote: > I'm migrating my Django database from sqlite to mysql. I've done the > following with no problems: > python manage.py dumpdata > datadump.json Changed my settings.py to > the mysql database. > > But when I issue the following command python manage.py loaddata > datadump.json I get this error: > IntegrityError: (1062, "Duplicate entry '13-13' for key > 'from_category_id'") > > How do I go go about fixing this issue so that I can run the command > again and hopefully load my data into my site? > > thanks, > j. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

