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:UserswzsfiAppDataLocalProgramsPythonPython36libsite-packagesdjangocoremanagement\__init__.py", line 367, in execute_from_command_line
utility.execute()
File "C:UserswzsfiAppDataLocalProgramsPythonPython36libsite-packagesdjangocoremanagement\__init__.py", line 359, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:UserswzsfiAppDataLocalProgramsPythonPython36libsite-packagesdjangocoremanagementase.py", line 294, in run_from_argv
self.execute(*args, **cmd_options)
File "C:UserswzsfiAppDataLocalProgramsPythonPython36libsite-packagesdjangocoremanagementase.py", line 342, in execute
TypeError: __init__() got an unexpected keyword argument 't_command'
在全局搜索
't_command'
替换为
init_command