getting django to work with pydev on os x
I figure I may as well make public mention of this since it gave me some trouble while trying to get django and pydev/eclipse to play together nicely this evening. By default if you went through the standard route of installing django the framework will reside in:
/Library/Python/2.6/site-packages/django
Pydev did not find this directory in the auto config for the PYTHONPATH, so when you create your first django project in Eclipse you will get errors such as:
unresolved import in the line: from django.core.management import execute_manager
To solve this I tried adding several directories to the PYTHONPATH in Eclipse, but in the end the one you need to add is:
/Library/Python/2.6/site-packages
This will get django, mysqldb, and whatever else you have in there. Obviously as time goes on that path to version 2.6 will change.