Django, reports an error every time the database is migrated, but generates the correct table

Failed to get real commands on module "Learning_log": python process died with code 1: Traceback (most recent call last):
File "D:PyCharm 2017.1.2helperspycharm_jb_manage_tasks_provider.py", line 28, in < module >

parser.report_data(dumper, commands_to_skip)

File "D:PyCharm 2017.1.2helperspycharmdjango_manage_commands_provider_parserparser.py", line 90, in report_data

module_to_use.process_command(dumper, command, parser)

File "D:PyCharm 2017.1.2helperspycharmdjango_manage_commands_provider_parser_argparse.py", line 43, in process_command

argument_info = (1, _utils.get_opt_type(action))

File "D:PyCharm 2017.1.2helperspycharmdjango_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
I just got in touch with django, and don"t know how to solve it. I hope you can help me.

Mar.06,2021

I have also encountered this problem. Have you solved it? how to solve it? can you give me some advice? thank you.

Menu