当我运行诸如python manage.py runserver
之类的任何命令时,我已经在项目上升级了django,它显示了诸如AttributeError: 'NoneType' object has no attribute 'Command'
之类的错误,在Django或代码中是否存在任何问题?
Django Pro\Django_Project-master\Dpro> python manage.py migrate
Traceback (most recent call last):
File "manage.py", line 16, in <module>
execute_from_command_line(sys.argv)
File "C:\Users\Ga\Django Pro\Django_Project-master\Dpro\env\lib\site-packages\django\core\management\__init__.py", line 381, in execute_from_command_line
utility.execute()
File "C:\Users\Ga\Django Pro\Django_Project-master\Dpro\env\lib\site-packages\django\core\management\__init__.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Users\Ga\Django Pro\Django_Project-master\Dpro\env\lib\site-packages\django\core\management\__init__.py", line 224, in fetch_command
klass = load_command_class(app_name, subcommand)
File "C:\Users\Ga\Django Pro\Django_Project-master\Dpro\env\lib\site-packages\django\core\management\__init__.py", line 37, in load_command_class
return module.Command()
AttributeError: 'NoneType' object has no attribute 'Command'