使用 Komodo Edit 将当前项目添加到 python 路径

发布于 2024-10-04 17:16:45 字数 231 浏览 1 评论 0原文

我最近一直在使用 komodo edit 来浏览一些 django 教程,它为框架提供的代码完成水平给我留下了深刻的印象。

然而,我真正希望它做的是为当前项目提供代码完成,因此实际上我自己的视图、模型等将以与框架本身相同的方式工作。

有没有办法在每个项目的基础上临时修改 python 路径以获得当前项目的代码完成?

注意:我不确定这是 Stack Overflow 还是超级用户问题,请随时纠正我。

Ive been using komodo edit recently to go through a few django tutorials, and ive been impressed with the level of code completion it provides for the framework.

However what i really want it to do is provide code completion for the current project, so in effect my own views, models etc. would work in the same way as the framework itself.

Is there a way to temporarily modify the python path on a per project basis to get code completion of my current project?

NB: Im not sure whether this is a Stack Overflow or a Super User question, feel free to correct me.

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

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

发布评论

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

评论(1

半﹌身腐败 2024-10-11 17:16:45

您可以在 Project [Menu] -> 中设置每个项目的 Python 路径属性->语言 -> Python->其他 Python 导入目录。有关更多详细信息,请参阅官方文档

You can set per-project Python paths in Project [Menu] -> Properties -> Languages -> Python -> Additional Python Import Directories. See the official documentation for more details.

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