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
Probably the PYTHONPATH configured in your interpreter is not correct...
I.e.: if you have a structure with
/my/path/django
/my/path/django/__init__.py
you have to make sure that
/my/path
is added to the PYTHONPATH (and /my/path/django is NOT)
Another thing to note is that right after installing Django, you just have to do a refresh in your interpreter so that it's recognized (go to the interpreter preferences page, press 'apply' and choose the interpreters to be re-analyzed -- there are already plans to make this automatic in one of the upcoming releases, but right now you have to do that manually because the interpreter is analyzed when you configure it and 'set in stone').
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With