在pycharm-tools中运行run manage.py task 报错

来源:3-1 项目初始化

起航Go

2018-05-18

报错信息:

Failed to get real commands on module "MxShop": python process died with code 1: Traceback (most recent call last):

  File "C:\Program Files (x86)\JetBrains\PyCharm 5.0.3\helpers\pycharm\_jb_manage_tasks_provider.py", line 22, in <module>

    parser.report_data(dumper)

  File "C:\Program Files (x86)\JetBrains\PyCharm 5.0.3\helpers\pycharm\django_manage_commands_provider\_parser\parser.py", line 47, in report_data

    command_help_text=VersionAgnosticUtils().to_unicode(command.usage("")).replace("%prog", command_name))

AttributeError: 'Command' object has no attribute 'usage'


写回答

1回答

bobby

2018-05-21

你使用的django是哪个版本?

0
4
起航Go
回复
bobby
删掉项目文件夹下面的.idea文件夹 然后重新open,这个方法也不好使。重装pycharm太麻烦,不倒腾了,命令行里直接Python manage.py make...没问题
2018-05-28
共4条回复

Python前后端分离开发Vue+Django REST framework实战

Django REST framework课程视频,RESTFul API前后端分离开发

2873 学习 · 2457 问题

查看课程