Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pycharm manage.py autocomplete error

I'm using Django 1.10 and Pycharm 2016.2.

In every Django project, manage.py commands work correctly but autocomplete gives the following error:

Failed to get real commands on module "projects_name" python died with code 1
File opt/Pycharm/helpers/.../jb_manage_tasks_provider.py
File opt/pycharm/helpers.../parser.py
File my virtual env folder/lib/python3.5/site packages/django/core/management/base.py
AttributeError  Command object has no attribute 'args'

Reinstalling Pycharm did not help.

like image 866
zhasulan serikov Avatar asked Aug 08 '16 04:08

zhasulan serikov


2 Answers

You can use helper from community edition which support django 1.10+ Replace file JetBrains\PyCharm 2016.2\helpers\pycharm\django_manage_commands_provider_parser\parser.py

with this

like image 71
FeNUMe Avatar answered Sep 28 '22 20:09

FeNUMe


i've been using django 1.10 and pycharm not supporting it yet. Downgraded to 1.9.8 and now autocompletion works without errors

like image 23
zhasulan serikov Avatar answered Sep 28 '22 20:09

zhasulan serikov