PyCharm stopped autofill suggestions.

Answered

Recently my PyCharm, stopped suggestions for my django project. It is not suggesting model fields when I type. Here is example,

my models.py file,

class User(model):
    field_one = django.field
    field_two = django.field

please ignore the info as it is not actual model,

so whenever I try to use

user = User.objects.get(field_one='something')

my PyCharm used to give me fields suggestion inside .get() when my curser was inside the parenthesis like field_one, field_two and other objects/fields from super class etc but now it is not giving me any suggestion. It is painful because I have Foreign Keys in some of my model which has other foreign keys inside. It was easy to write queries but now, it is not easy as my models are big and contains different connections by foreign keys.

I have tried changing preference, python interpreter, django support etc solutions that I have found online. PyCharm is suggesting me other python codes and autofills so if I write,

user = User.objects.

it will give me suggestions of methods like get(), filter(), get_or_create() etc but not field's inside the method.

0
7 comments
Official comment

Hello.

Please check latest PyCharm. If it still does not work, go to "File | Settings | Languages & Frameworks | Django", click "Show structure" and check it shows you your modeles. If it does not, make shure django settings above are correct.

You can email your project to our support (pycharm-support@jetbrains.com) for further investigations.

Avatar
Permanently deleted user

I am also facing the same problem.I am using pycharm community edition.It does not show Django in laguages and support.

It even down not show Prefrences column.Need a quick help!!!!!!!

0
Avatar
Permanently deleted user

Then why was it showing me the code suggestion in my starting days of pycharm community version

0
Avatar
Permanently deleted user

I basically have no problem in my initial days of install of my pycharm...it has start giving me this problem after some time ......stopped showing me suggestion .For eg in models.py dont show me the expected fields

0
Avatar
Permanently deleted user

I was having the same problem. However, after a while, I realized that I have not set up the interpreter for the project. There should be a message on top of the file saying that you have not set up an interpreter for the project. When you set up the interpreter suggestions comes back.

I am not very experienced in Pycharm. Just leaving my experience with the hope that it will help someone.

 

0

Hi Nalins84,

Actually, there should be such message.

Wasn't it there?

What is your PyCharm version?

0

Please sign in to leave a comment.