2

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.

guettli
  • 25,042
  • 81
  • 346
  • 663

2 Answers2

2

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?

Community
  • 1
  • 1
puredevotion
  • 1,135
  • 1
  • 11
  • 27
1

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

guettli
  • 25,042
  • 81
  • 346
  • 663
user1941407
  • 2,722
  • 4
  • 27
  • 39
  • I just tried it, but it did not work. But maybe I am doing something wrong. I opened pyCharm for the first time. – guettli Jul 11 '14 at 15:06
  • User esauro thinks that it is not possible with 3.4.1 and I tried it, and it did not work. Maybe in the future? – guettli Jul 12 '14 at 14:30
  • This feature request is already reported: http://youtrack.jetbrains.com/issue/PY-3999 – guettli Jul 12 '14 at 15:28