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

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


当前回答

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

其他回答

TextMate, Firebug和pdb。后者挽救了我无数次:)

我使用Vim:

http://github.com/skyl/vim-config-python-ide

(更新)

Sublime Text 2非常棒。如果你需要的话,它支持很多Vim命令:Vintage Mode

它有一个很好的包管理器:http://wbond.net/sublime_packages/package_control

到目前为止,我使用这些包:

Djaneiro

SetDjangoSyntax

CoffeeScript

SublimeLinter

主题-苏打

SideBarEnhancements

我仍然喜欢Vim,但是……我有没有提到Sublime Text插件是用Python写的?

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的支持。