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
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.
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!