报错描述报错如下>pythonmanage.pytesttweets................File"C:\Users\17293\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\backends\utils.py",第84行,在_execute中返回self.cursor.execute(sql,params)File"C:\Users\17293\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\utils.py",第90行,在__exit__raisedj_exc_value.with_traceback(traceback)fromexc_valueFile"C:\Users\17293\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\backends\utils.py",第84行,在_execute中返回self.cursor.execute(sql,params)File"C:\Users\17293\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\backends\mysql\base.py",line73,inexecutereturnself.cursor.execute(query,args)File"C:\Users\17293\AppData\Local\Programs\Python\Python39\lib\site-packages\MySQLdb\cursors.py",第206行,在执行res=self._query(query)File"C:\Users\17293\AppData\Local\Programs\Python\Python39\lib\site-packages\MySQLdb\cursors.py”,第319行,在_querydb.query(q)文件“C:\Users\17293\AppData\Local\Programs\Python\Python39\lib\site-packages\MySQLdb\connections.py",line259,inquery_mysql.connection.query(self,query)django.db.utils.ProgrammingError:(1146,"Table'test_d_twitter_db.tweets_tweet'doesn'texist")PSC:\Users\17293\Desktop\Coder\Python\Django\twitter>python.\manage.pymakemigrations数据表是单元测试自己创建的,是不是手动创建的,所以这个错误一开始让我百思不得其解解决方案执行如下命令pythonmanage.pymakemigrations只执行单元测试命令pythonmanage.pytesttweets不需要执行pythonmanage.pymigrate
