Problem loading the test_data fixture #251

Open
zararah opened this Issue Apr 7, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@zararah
Contributor

zararah commented Apr 7, 2014

I tried to run: python manage.py loaddata test_data but got: IntegrityError: Could not load articles.Article(pk=3): NOT NULL constraint failed: articles_article.category_id

Thanks!

@ryanpitts

This comment has been minimized.

Show comment
Hide comment
@ryanpitts

ryanpitts Apr 9, 2014

Contributor

Ooh, yes, this makes total sense. The test_data fixtures were created a while ago, but the Article model has added a few fields since then. I need to generate new fixtures. Thanks for noting this.

Contributor

ryanpitts commented Apr 9, 2014

Ooh, yes, this makes total sense. The test_data fixtures were created a while ago, but the Article model has added a few fields since then. I need to generate new fixtures. Thanks for noting this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment