东方耀AI技术分享

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 7255|回复: 15
打印 上一主题 下一主题

[课堂笔记] 03、python_django_web开发_创建Django应用与简单的响应实例

[复制链接]

0

主题

106

帖子

352

积分

2W人工智能培训

Rank: 10Rank: 10Rank: 10

积分
352
楼主
发表于 2018-1-20 19:21:56 | 显示全部楼层
我使用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

请问耀哥,这个如何解决?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|人工智能工程师的摇篮 ( 湘ICP备2020019608号-1 )

GMT+8, 2024-5-2 12:46 , Processed in 0.170133 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表