我做过一些Django开发,但都是在文本编辑器中完成的。我很好奇其他人在Django开发中使用了什么更高级的开发工具。
我习惯使用Visual Studio进行开发,非常喜欢它提供的智能感知、代码补全和文件组织,希望能在Django/Python环境中找到一些(或工具组合)可以提供这些功能的东西。
我做过一些Django开发,但都是在文本编辑器中完成的。我很好奇其他人在Django开发中使用了什么更高级的开发工具。
我习惯使用Visual Studio进行开发,非常喜欢它提供的智能感知、代码补全和文件组织,希望能在Django/Python环境中找到一些(或工具组合)可以提供这些功能的东西。
当前回答
我使用Eclipse和Pydev也获得了很好的结果。尽管我仍然需要一个打开到项目目录的shell来运行manage.py命令。我还将它与Bazaar插件一起用于版本控制和与服务器同步代码。
其他回答
现在你也可以使用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的免费版本。
Ulipad是一个很好的例子。 http://code.google.com/p/ulipad/
我使用Eclipse和普通的PyDev。Django没有任何特定的功能。我想到的最好的办法是建立一个运行概要文件来运行开发web服务器。
如果您添加web工具项目(WTP),您将在模板中得到语法高亮显示,但没有与特定模板语言相关的内容。PyDev是一个不错的插件,如果您已经熟悉Eclipse并在其他项目中使用它,那么它是一个不错的选择。
我记得NetBeans开始获得Python支持,但我不知道它现在在哪里。很多人对NetBeans 6赞不绝口,但在Java世界中,Eclipse仍然是OSS ide的王者。
Update: LiClipse is also fantastic for Django. Install it, use this method to get the icon into Ubuntu's menu. Start LiClipse and in File > New > Project ..., select PyDev and PyDev Django project. You may have to set up your Python interpreter etc, but that you'll be able to figure out on your own. Once the Django project is created, you can right click on the project and the menu will have a "Django" option, which allows various things like creating a Django app or running migrations etc. LiClipse is good because it consumes far lesser memory than PyCharm and supports refactoring and autocomplete reasonably well.
我写了一篇关于NetBeans新的和即将到来的对Django的支持的博文。再加上它对Python, JavaScript, HTML和CSS的支持,在我看来它是一个强有力的候选人!