Autosuggest / code completion
Nico den Boer <[email protected]> Thu, 25 Apr 2013 05:38:40 -0700 (PDT)
| Newsgroups | gmane.comp.ide.komodo.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm evaluating Komodo Edit, version 8.0.1, build 12353, platform linux-x86_64. For HTML and CSS it works wonderful. It is the best editor I have seen so far. If I try to code in Python (a Django project) I have a problem. Perhaps I am doing something wrong, perhaps these are functions of Komodo IDE or perhaps I found bugs ;) In my Django project I have defined one model (Task) which is a subclass of django.db.models In the code it is first instantiated like task = Task() As soon as I type task. Komodo starts to scan packages. Then I see an error: "evaluating 'task' at tasks.py#502. Could not resolve 'objects' getattr on <class Task> in (blob 'models', []) (error determining completions) There is no problem with the built-in models or any other classes in Django. Komodo can also find functions in my project. Only the models which are defined cannot be found. Of course I have checked edit / preferences / Languages / Python / Additional Python import directories. There I have the project directory, relevant dist-packages and site-packages directories. Looking around to what is causing this, it looks like Komodo requires a Django model to have an 'objects' property with an instantion of a models.Manager. Is this true? If so, is there any way to get around that (apart from modifying existing code)? Any input would be highly appreciated. Nico _______________________________________________ Komodo-discuss mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss