Komodo Edit - Django 的代码完成?

发布于 2024-08-04 22:33:45 字数 140 浏览 2 评论 0原文

我一直在 Django 的一个小项目中使用 Komodo Edit。

代码完成功能似乎对于标准 python 模块来说工作得很好,但是,它对 Django 模块一无所知。有没有办法配置 Komodo Edit 以使用 Django 模块进行自动完成?

I've been using Komodo Edit for a small project in Django.

The code completion features seem to work pretty well for standard python modules, however, it doesn't know anything about Django modules. Is there any way to configure Komodo Edit to use Django modules for autocomplete as well?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

别靠近我心 2024-08-11 22:33:46

o 编辑>偏好。展开
单击 [+] 进入“语言”组
象征。单击“Python”。单击
下面的小“添加...”按钮
“额外的Python导入
目录”。添加上面的目录
你的项目和你应该有
启用智能感知。

这对于我的 Django 和我的个人项目来说一直都很有效。

o to Edit > Preferences. Expand the
"Languages" group by clicking the [+]
symbol. Click "Python". Click the
little "Add..." button under
"Additional Python Import
Directories". Add the directory ABOVE
your project and you should have
intellisense enabled.

This has always worked for me for both Django and my individual projects.

你爱我像她 2024-08-11 22:33:46

确保 Django 在你的 python 路径上并且 Komodo 应该选择它。或者,您可以将 Django 的位置添加到 Komodo 查找其自动完成功能的位置。

By sure Django is on your python path and Komodo should pick it up. Alternatively you can add the location of Django to where Komodo looks for its autocomplete.

诗化ㄋ丶相逢 2024-08-11 22:33:46

嗯。它是默认安装的,所以我的答案可能不是正确的解决方案。 :-)

但是这里...

您可以在 Komodo 编辑中安装 Django 扩展。我自己没有测试过,但你可以测试一下。

工具->附加组件 ->扩展

它的名字是“Django Language”。

检查它是否有效。

Hmmm. It's installed by default so my answer probably isn't the right solution. :-)

But here goes...

You can install a Django extension in Komodo edit. I haven't tested it myself but you can test it.

Tools -> Add-ons -> Extensions

It's name is "Django Language".

Check if it works.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文