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