Django 1.8 Programming Error: Relation Auth_user Doesn't Exist When Running Test
I've read already the existing answer about this problem in Stackoverflow. But none worked for me. When I run manage.py test, I get the following, although my website run fine! $ .
Solution 1:
Your iobserve
app doesn't have any migrations, and you can't have a relation, such as a OneToOneField
, from an unmigrated app to a migrated app.
You need to run manage.py makemigrations iobserve
to create the initial migrations for the iobserve
app. Only when the initial migrations exist, will manage.py makemigrations
without any app labels create new migrations for that app.
Post a Comment for "Django 1.8 Programming Error: Relation Auth_user Doesn't Exist When Running Test"