简体   繁体   English

Django 1.3自动补全

[英]Django 1.3 autocompletion

I would like to know if there was a way to enable auto-completion for django class-based views. 我想知道是否有一种方法可以为基于django类的视图启用自动完成功能。

I really like the new way to build views. 我真的很喜欢这种建立视图的新方法。 It saves me a lot of time. 它为我节省了很多时间。 The thing is, i rewrite a lot the class methods : 问题是,我重写了很多类方法:

  • dispatch 调度
  • get_context_data get_context_data
  • get_queryset get_queryset
  • ... ...

I lose time redefining these methods with super, args ... 我浪费时间用super,args重新定义这些方法...

I'm working on Pydev/Eclipse. 我正在使用Pydev / Eclipse。 Is there a way to implement autocompletion for this or do i have to look for an other IDE. 有没有一种方法可以为此实现自动补全功能,或者我是否必须寻找其他IDE。

Thanks in advance, 提前致谢,

There is a way extending classes. 有一种扩展类的方法。 Check this class for creating a view that dispatches based on request.method or this . 检查此类, 以创建基于request.methodthis 调度的视图

Isn't autocomplete or an IDE, but you can avoid a lot of "code typing". 它不是自动完成功能,也不是IDE,但可以避免很多“代码键入”。

如果总是一样的话,您可以在PyDev中为其创建模板。请参阅: http : //pydev.org/manual_adv_compltemp.html

Try to use PyCharm of JetBrains 尝试使用JetBrains的PyCharm

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

for me and my coworkers is the best python IDE and have the best suport. 对我和我的同事来说,这是最好的python IDE,并且支持最好。

Best US$ 99 ever! 最佳99美元!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM