|
我使用pycharm 工具,操作Tools-->Run manage.py Task...,出现下面的错误:
Failed to get real commands on module "test2": python process died with code 1: Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/helpers/pycharm/_jb_manage_tasks_provider.py", line 28, in <module>
parser.report_data(dumper, commands_to_skip)
File "/Applications/PyCharm.app/Contents/helpers/pycharm/django_manage_commands_provider/_parser/parser.py", line 90, in report_data
module_to_use.process_command(dumper, command, parser)
File "/Applications/PyCharm.app/Contents/helpers/pycharm/django_manage_commands_provider/_parser/_argparse.py", line 43, in process_command
argument_info = (1, _utils.get_opt_type(action))
File "/Applications/PyCharm.app/Contents/helpers/pycharm/django_manage_commands_provider/_parser/_utils.py", line 20, in get_opt_type
assert isinstance(opt.choices, list), "Choices should be list"
AssertionError: Choices should be list
请问耀哥,这个如何解决?
|
|