Search code examples
pythondjangopydev

pydev does not recognize django installation


I have python 2.6.1 installed with django 1.3 and PyDev 2.0. I am able to import django and print the version from commandline. However, when I try to create a Django project with pydev or even import django I get an error. When creating the django project, I get "Django not found." error.

I have tried removing and adding the pythong interpreter to rescan the site-packages. I see that django is not available in the Libraries section. I have even tried adding the folder manually and applying the setting.

Am I missing something?

Thanks


Solution

  • I had the same problem. I even had django in my System Libs. My solution was to add the same folder to the Project > PyDev-PYTHONPATH > External Libraries:

    /usr/local/lib/python2.7/dist-packages
    

    Before that I tried to reinitiate the interpreter, but no luck. The above solution was the only one the worked for me.