1
我的測試無法正常工作。如果我嘗試蟒蛇manage.py測試應用程序的名字我有這樣的錯誤:如何使用migrate appname運行測試 - 結果?
! You *might* be able to recover with: = DROP TABLE "appname_userprofile"; []
= DROP TABLE "appname_table2"; []
= DROP TABLE "appname_table3"; []
! The South developers regret this has happened, and would
! like to gently persuade you to consider a slightly
! easier-to-deal-with DBMS (one that supports DDL transactions)
! NOTE: The error which caused the migration to fail is further up.
Error in migration: content:0015_initial
django.db.utils.DatabaseError: table "appname_userprofile" already exists
如何運行我python manage.py test appname
與
manage.py migrate appname --fake