我做过一些Django开发,但都是在文本编辑器中完成的。我很好奇其他人在Django开发中使用了什么更高级的开发工具。

我习惯使用Visual Studio进行开发,非常喜欢它提供的智能感知、代码补全和文件组织,希望能在Django/Python环境中找到一些(或工具组合)可以提供这些功能的东西。


当前回答

Editra支持Django模板语言语法高亮显示。您可以将其配置为更好的记事本或基本IDE。

其他回答

我自己喜欢Eclipse + PyDev和/或eric。PyDev的新版本提供了一些非常棒的代码补全支持。

因为我只在PyDev中使用Eclipse,所以我只使用了平台运行时二进制+ PyDev + Subclipse的简单安装。

现在你也可以使用Visual Studio 2010了。方法如下:

Download and install Python Tools for Visual Studio. Create a new project from existing code (menu File → New → Project From Existing Code...) Specify your Django project folder and use the defaults. Right-click on manage.py and choose Set as Startup File. In your project properties Debug tab, add "runserver" in Script Arguments. You can set break points, and attach to the Python process for debugging. If you want to debug without having to "attach to process," use "runserver --noreload" in your script arguments. However, the "--noreload" means you'll have to stop and restart the Django development web server manually (to recognize your code changes).

如果您已经使用Visual Studio,这是一个很好的设置。

Python工具已经更新。它现在已经内置了对Django的支持。

据我所知,目前还没有针对Django的“IDE”,但是有一些IDE可以开箱即用地支持Django,特别是用于模板的Django语法。

它的名字叫科莫多,它有很多特色,但并不便宜。如果你不担心源代码控制或调试,那么有一个叫做Komodo Edit的免费版本。

我使用Eclipse和Pydev也获得了很好的结果。尽管我仍然需要一个打开到项目目录的shell来运行manage.py命令。我还将它与Bazaar插件一起用于版本控制和与服务器同步代码。

我一直使用Vim或Kate,但我更喜欢成熟的IDE。考虑到它不像Visual Studio那么重。