N
N
Nikita Shchypylov2017-09-28 11:17:15
PyCharm
Nikita Shchypylov, 2017-09-28 11:17:15

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,
59ccaff02ddab080344613.png
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

1 answer(s)
A
AlexandrBirukov, 2017-09-28
@Nikulio

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 question

Ask a Question

731 491 924 answers to any question