Django Unresolved Importing In Eclipse
Python 3.3.1 (default, Apr 17 2013, 22:32:14) [GCC 4.7.3] on linux Type 'help', 'copyright', 'credits' or 'license' for more information. >>> import django >>> d
Solution 1:
I had same problem with ubuntu 12.04 + eclipse 3.7.2 + django 1.3.1. In my case django was installed in "/usr/lib/python2.7/dist-packages/django".
I tried to do almost as same as yours and failed. But I have succeeded to import django by doing followings.
- Remove ".../dist-packages/django" from PYTHONPATH
- Click on apply (I am not an expert but I've read eclipse is caching somewhere)
- Add ".../dist-packages" intead
- Click on apply
- Create an Pydev project and try to import django -> it get imported in my case.
- Crate an Django project -> All relevant files as created as you run "django-admin startproject XXX"
I know this is an old question by I post this for myself too.
Post a Comment for "Django Unresolved Importing In Eclipse"