Answer the question
In order to leave comments, you need to log in
Why put in PyCharm packages for Python?
Hello everyone
. Module import in progress:
from django.http import HttpResponse
I have Django globally, so the import works, but PyCharm says reference is undefined. If I put the package in PyCharm here,
then everything works.
What is the point of putting it in the IDE as well?
Answer the question
In order to leave comments, you need to log in
Firstly, it’s better not to develop globally under python at all, and secondly, you have the “Project Interpreter” select at the top - there you choose which interpreter to use for a particular project, you can also create a new one there, and the IDE will use it when importing and in consoles and everywhere in general)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question