PyDev和Django:自动完成不检测Django? [英] PyDev and Django: Autocomplete not detecting Django?

查看:170
本文介绍了PyDev和Django:自动完成不检测Django?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用PyDev与Django。自动完成在shell中很好地工作 - 我开始打字,并且建议完成。但是,这在主代码编辑器窗口中不起作用。我如何解决这个问题?



我正在使用:



Eclipse build#20100218-1602



PyDev 1.5.6



Eclipse IDE for Java Devs 1.2.2

解决方案

您可能需要设置编辑器代码完成设置。他们在:



Window-> Preferences-> PyDev-> Editor->代码完成



您可能还需要将Django安装或Django项目添加到路径中。您可以设置为:



Window->首选项 - > PyDev->口译 - Python / p>

希望这有帮助。


I'm using PyDev with Django. The autocomplete works nicely in the shell - I start typing, and it suggests completions. However, this doesn't work in the main code editor window. How can I fix this?

I'm using:

Eclipse build #20100218-1602

PyDev 1.5.6

Eclipse IDE for Java Devs 1.2.2

解决方案

You might need to set the editor code completion settings. They are under:

Window->Preferences->PyDev->Editor->Code Completion

You might also need to add the Django install or your Django project to your path. You can set this under:

Window->Preferences->PyDev->Interpreter - Python

Hope this helps.

这篇关于PyDev和Django:自动完成不检测Django?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆