guettli
guettli

Reputation: 27107

IDE: autocomplete at django ORM double underscore

Is there an IDE which knows the django ORM and can can tell me the matching completions after the double underscore?

Example:

Foo.objects.filter(due_date__ ???

The IDE should tell me that gte is a possible completion.

Example2:

Permission.objects.filter(content_type__???

here the IDE should tell me that app_label is a possible completion.

Upvotes: 2

Views: 404

Answers (2)

user1941407
user1941407

Reputation: 2842

Pycharm can do it. You can try professional edition for 30 days.

http://www.jetbrains.com/pycharm/

It supported in PyCharm5: https://www.jetbrains.com/pycharm/whatsnew/#DjangoORM

Upvotes: 1

puredevotion
puredevotion

Reputation: 1195

Not really an IDE, but Sublime Text could do this. I haven't used Django in 2 years, and Sublime Text has changed a lot as well in that time, but give it a try.

Sublime Text and some info on Django configuration for Sublime

ps. see also this SO-topic: Which Django IDE?

Upvotes: 2

Related Questions