Unresolved import: models

StackOverflower picture StackOverflower · Jun 6, 2010 · Viewed 31.8k times · Source

I'm doing my VERY first project using python/django/eclipse/pydev following this guide

http://docs.djangoproject.com/en/dev/intro/tutorial01/

My only addition is the use of Eclipse/pydev.

I'm getting many errors related to "Unresolved imports". I can remove the errors using "remove error markers" and my site runs perfect (I can browse it) but I want to get rid definitively of this problem since errors pop up again after I removed them.

Any ideas?

EDIT

Using Ubuntu 9.1

Answer

Adam picture Adam · Jun 6, 2010

Check your pythonpath. You need to include the parent directory of django, usually Lib/site-packages.