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