Answer the question
In order to leave comments, you need to log in
Why doesn't autocomplete beyond Model.objects work in PyCharm. in django?
For example, there is
class Page(models.Model):
category = models.ForeignKey(Category)
title = models.CharField(max_length=128)
url = models.URLField('Link')
views = models.IntegerField(default=0)
from app.models import Page
Page.objects.order_by('-views')
Answer the question
In order to leave comments, you need to log in
Most likely you have a confusion with the paths. Point PyCharm to the Source directory (right click on the directory in the context menu)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question