ActiveState Community

Komodo Code Completions for Django on Ubuntu x64

Posted by jbot on 2009-10-05 23:40

I'm running Komodo IDE 5.2 on both my Vista machine and Ubuntu machine. Problem is while I (mostly) get code completions developing Django on the Vista machine, I don't get any at all when developing on Ubuntu. Django is not in the default dist-packages directory, but it is obviously in my PYTHONPATH. How can this be resolved?

anentropic | Tue, 2009-10-06 04:07

I have the same problem. I finally had enough of Eclipse and am trying to switch. I'm using Bitnami Djangostack on Mac OS X, which is a bundled stack of Apache, Python, Django.

I have added the relevant directories as 'additional python import directories':
/Applications/djangostack-1.2.0-0/python/lib/python2.5
/Applications/djangostack-1.2.0-0/python/lib/python2.5/site-packages
/Applications/djangostack-1.2.0-0/apps/django/lib/python2.5/site-packages/django

I have also given the djangostack python bin as the interpreter to use:
/Applications/djangostack-1.2.0-0/python/bin/python
(also tried ...bin/python2.5)

Code completion still doesn't work though. Anyone got any pointers?

toddw | Tue, 2009-10-06 11:19

You should only need to add:
/Applications/djangostack-1.2.0-0/python/lib/python2.5/site-packages
to your Python additional paths (in Komodo's global Languages->Python preferences).

Then on the next completion point in a ".py" file, i.e.:
from django import
then Komodo's codeintel should scan the above directories (it may take around 10 seconds to scan), then the completions should appear.

Cheers,
Todd