Pydev does not recognize django installation

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

I tried removing and adding a pythong interpreter to re-scan the site packages. I see that django is not available in the Libraries section. I even tried to add the folder manually and apply the setting.

Did I miss something?

thank

+5
source share
3 answers

. System Libs. > PyDev-PYTHONPATH > :

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

, . .

+3

, PYTHONPATH, , ...

I.e.:

/my/path/django
/my/path/django/__init__.py

,

/my/path 

PYTHONPATH (/my/path/django is NOT)

: Django , ( , "" , , - , , " " ).

+9

- : Python 3.3.2 Django 1.5.1 Eclipse PyDev 2.7.5. I -:

Django 1.5.1 Python "Resources" /System/Library/Frameworks/Python.framework/Versions/3.3/Resources/Django-1.5.1 .

, Django . , .

+2

All Articles