TypeError: __init__() got an unexpected keyword argument 't_command'


 python  .\manage.py migrate

報錯如下

λ python .\manage.py migrate
Traceback (most recent call last):
File ".\manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "C:\Users\wzsfi\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\management\__init__.py", line 367, in execute_from_command_line
utility.execute()
File "C:\Users\wzsfi\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\management\__init__.py", line 359, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Users\wzsfi\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\management\base.py", line 294, in run_from_argv
self.execute(*args, **cmd_options)
File "C:\Users\wzsfi\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\management\base.py", line 342, in execute

 

TypeError: __init__() got an unexpected keyword argument 't_command'

 

在全局搜索

 't_command'

替換為

init_command


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM