2
標題不清楚,我知道。
我想單元測試我的應用程序,所以我寫了一個我想執行的測試。我公司推出python manage.py test
但沒有在DB的錯誤:Django測試不能初始化分貝,但我可以
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
我不明白是怎麼回事,因爲這些命令我沒有得到任何錯誤...有人可以幫我嗎? :)