标题不清楚,我知道。
我想对我的应用程序进行单元测试,所以我写了一个我想执行的小测试。我启动了python manage.py test
,但数据库中有一个错误:
The error was: ERREUR: the relation « me_auth_emailuser » doesn't exists
Error in migration: authtoken:0001_initial
DatabaseError: ERREUR: the relation « me_auth_emailuser » doesn't exists
(从法语翻译)
此表已使用南迁移。对于我的应用程序,我只使用:
python manage.py syncdb
python manage.py migrate me_auth
python manage.py migrate
我不明白发生了什么,因为使用这些命令我没有收到任何错误......有人可以帮助我吗?:)