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

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


当前回答

现在你也可以使用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的支持。

其他回答

Eclipse有用于python开发的PyDev插件。不幸的是,我不确定它与Django的集成有多好。

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

我使用科莫多编辑器。查看打开科莫多编辑。

Visual Studio有一个实际的Python扩展:http://pytools.codeplex.com/。这真是太棒了。感觉就像我在用任何原生Visual Studio语言编码一样。这个扩展甚至可以与Django兼容。最棒的是:它是完全免费的。即使是Visual Studio,它也只需要Visual Studio Shell就可以工作,这是完全免费的。

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