Develop a project in Django with installing an IDE as Eclipse with PyDev. The following import statement:
from polls.models import Poll, Choice
works when starting a project from the command line with:
python manage.py runserver
However, built-in error checking with Eclipse does not find polls.models ("unauthorized import port"). I can fix this by adding a project name in front of the class and then running it. That is, do the import statement:
from projectName.polls.models import Poll, Choice
The problem is that I am collaborating with the project and cannot do this.
Question: Is there a way to automatically detect Eclipse or guess the project name from the import statement?
source share