Answer the question
In order to leave comments, you need to log in
PyCharm not seeing my classes?
folder structure :
from poliv.settings import PUBLIC_URL
from category.models import Category
Answer the question
In order to leave comments, you need to log in
You are the sheep with you)))
It was necessary in the directory where all our modules are stored, right-click then -> Mark Directory As and select Sources root and after that it will turn blue:
after which PyCharm will see its classes as it should.
He has such visits. Reload charm.
Do not do that. Do like this:
from django.conf import settings
settings.PUBLIC_URL
PyCharm by default starts looking for modules from the root of the project. Just point him to additional places to search. In your case, as I understand it, this is the app directory
In the project tree, select this directory and select from the context menu: Mark directory as -> Source root
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question