Wednesday, February 1, 2012

Re: Error making fixtures

On Feb 1, 12:26 pm, xina towner <xinatow...@gmail.com> wrote:
> Hello, I'm tryng to do fixtures with dumpdata. I write this command:
>
> python manage.py dumpdata quests --indent=4 >
> quests/fixtures/quests_views_testdata.json
>
> But I get this error message:
>
> _mysql_exceptions.OperationalError: (1054, "Unknown column
> 'quests_quest.availability' in 'field list'")

It seems your table quests_quest is missing the column availability.
You probably have added this at some point to your model, but you
haven't added it to your database table. The most straightforward way
to do this synchronization is by good old SQL. You might also want to
look into south (database migrations tool).

- Anssi

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment