pydev not recognizing python installation with django

11,617

Solution 1

go in the menu to window -> preference -> pydev -> Interpreter - Python ; and add the python interpreter there, if you installed the django in a virtual environment you should add the python interpreter of the virtual env ; after adding the interpreter by clicking on new you should now click on Apply , you should see now all the system libs from PYTHONPATH added there between them Django .

hope this will help

Solution 2

I had the same problem and this is what I did just after installing eclipse:

  • Preferences > Interpreter Python
  • Pressed Auto-config
  • Selected /Library/Python/x.x/site-packages, which was not selected (some django folders were in there, persumably the installation)
  • Clicked apply / OK

Creating a Django project afterwards should be ok.

Good Luck!

Solution 3

Jaffa,

You might have configured your python interpreter in Eclipse prior to installing Django in python.

So what you have to do now is in Eclipse remove the Python interpreter and add it again (now that it has Django installed) and all should work ok.

Solution 4

I was having this same exact problem today, and I just wanted to add some notes to help people out. You can follow the instructions of antonkeren above, but there's one thing to note that was not mentioned. After adding the django directory to the path you must QUIT ECLIPSE OR APTANA STUDIO. After you restart it and try to create a django project it will work.

Solution 5

I stumbled upon this only yesterday myself: Django must not be among the system libraries for this to function...

Share:
11,617
tipu
Author by

tipu

code n stuff

Updated on June 15, 2022

Comments

  • tipu
    tipu almost 2 years

    I have python installed with django. I know the installation is there because I installed it following the directions and in the command line I can do "import python" and there is no crash.

    When I try creating a django project in pydev, I get an error: "Django not found."

    What could the problem be?