我做过一些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的支持。

其他回答

我写了一篇关于NetBeans新的和即将到来的对Django的支持的博文。再加上它对Python, JavaScript, HTML和CSS的支持,在我看来它是一个强有力的候选人!

PyCharm。它是我迄今为止尝试过的最适合Python、Django和web开发的IDE。它完全值这个钱。

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

Ulipad是一个很好的例子。 http://code.google.com/p/ulipad/

我使用Kate (KDE高级文本编辑器)进行大部分开发,包括Django。它同时有Python和Django模板语法突出显示。当项目的重要部分涉及到HTML时,我会切换到Quanta+。

因为它使用Kate的KPart,所以它同样适合编辑Python部分,对于HTML模板,我有整个Quanta+工具,同时仍然突出显示特定于django的标记。

2013年更新:不幸的是,Quanta+已经死了好几年了,也没有希望它会复活。而且,没有其他可用的HTML编辑器,所以现在一直都是Kate。