Django开发IDE [关闭]

问题:Django开发IDE [关闭]

我已经做了一些Django开发,但是所有工作都在文本编辑器中进行。我很好奇其他人在Django开发中使用了哪些更高级的开发工具。

我习惯使用Visual Studio进行开发,并且真的很喜欢它提供的IntelliSense,代码完成和文件组织,并且希望找到可以在Django / Python环境中提供某些功能的工具(或工具组合)。

I have done a little Django development, but it has all been in a text editor. I was curious what more advanced development tools others are using in their Django development.

I am used to using Visual Studio for development and really like the IntelliSense, code completion, and file organization it provides and would like to find something (or a combination of tools) that would provide some of this in the Django/Python environment.


回答 0

我使用Eclipse和普通的PyDev。没有任何特定的Django功能。我想到的最好的方法是设置运行配置文件以运行开发Web服务器。

如果添加Web工具项目(WTP),则模板中的语法将突出显示,但是与特定模板语言无关的内容将不会突出显示。PyDev是一个不错的插件,如果您已经熟悉Eclipse并将其用于其他项目,则是一个不错的选择。

我记得NetBeans开始获得Python支持,但是我不知道现在在哪里。许多人对NetBeans 6赞不绝口,但是在Java世界中,Eclipse仍然是OSS IDE的王者。

I use Eclipse and a plain vanilla PyDev. There isn’t any specific Django functionality. The best I came up with was setting up a run profile to run the development web server.

If you add the web tools project (WTP), you’ll get syntax highlighting in your templates, but nothing that relates to the specific template language. PyDev is a decent plugin, and if you are already familiar with Eclipse and use it for other projects it is a good way to go.

I recall NetBeans starting to get Python support, but I have no idea where that is right now. Lots of people rave about NetBeans 6, but in the Java world Eclipse still reigns as the king of the OSS IDEs.


回答 1

PyCharm从支持Django和JetBrains的谷歌应用程序。看起来很有希望。

注意:如果要Django支持,则需要购买Professional版本的许可证。社区版本不支持Django。

There is PyCharm from JetBrains which supports Django and Google Apps. It looks promising.

Note: You need to buy a license for the Professional version if you want Django support. The Community version desn’t support Django.


回答 2

我使用Vim:

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

[更新]

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

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

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

贾内罗

设置Django语法

CoffeeScript

崇高的林特

主题-苏打水

补充工具栏

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

I use Vim:

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

[UPDATE]

Sublime Text 2 is pretty awesome. It supports a lot of Vim commands if you want them: Vintage Mode

It has a nice package manager: http://wbond.net/sublime_packages/package_control

I use these packages so far:

Djaneiro

SetDjangoSyntax

CoffeeScript

SublimeLinter

Theme – Soda

SideBarEnhancements

I still love Vim but … did I mention that Sublime Text plugins are written in Python?


回答 3

我使用Komodo Edit。签出打开Komodo编辑。

I use Komodo Edit. Check out the Open Komodo Edit.


回答 4


回答 5

我开始喜欢使用Aptana Studios + PyDev(和其他)插件进行各种Web应用程序开发。如您所知,它建立在强大的Eclipse之上,但是是专门为专注于Web应用程序开发而设计的。

I am beginning to enjoy working with Aptana Studios + PyDev (and other) plugins for all sorts of web application development. As you can tell, it is built on top of the powerful Eclipse, but is tailor-designed to focus on web application development.


回答 6

我的大多数开发工作都使用Kate(KDE高级文本编辑器),包括Django。它同时具有Python和Django模板语法高亮显示。当项目的很大一部分涉及HTML时,我将切换到Quanta +。

由于它使用了Kate的KPart,因此它对于编辑Python部件和HTML模板都同样有用,我拥有完整的Quanta +工具,同时还保留了Django特有的标记。

2013年更新:不幸的是,Quanta +已经死了很多年了,而且它永远也不会复活。另外,那里没有其他可用的HTML编辑器,所以现在一直都是Kate。

I use Kate (KDE Advanced Text Editor) for most of my development, including Django. It has both a Python and Django Templates syntax higlighting. I switch to Quanta+ when a significant part of the project involves HTML.

Since it uses Kate’s KPart, it’s just as good for editing the Python parts, and for the HTML templates i have the whole Quanta+ tools, while still highligting Django-specific tags.

Update 2013: Unfortunately, Quanta+ has been dead for years now, and there’s no hope that it will ever be resurrected. Also, there’s no other usable HTML editor out there, so it’s Kate all the time now.


回答 7

NetBeans for Python是我当前的最爱(比我发现的Eclipse更轻巧,更容易安装)。支持简单的重构,自动完成,错误/警告…

Eclipse Aptana PyDev可能是当今最完整的免费IDE之一(未经大量测试)

Wingware Python IDE是一种商业IDE,具有一些Django特定的项目设置功能,可以调试Django模板文件。

IntelliJ IDEA Ultimate Edition是另一个商业IDE,它也有正在大力开发的Python插件。我看到了一些演示,该演示在自动完成方面非常有前途(对于模板和Python)。

我仍然使用一个小的触摸修复程序的 Vim。另请参阅: Django的额外调整

NetBeans for Python is my current favorite (lighter and so much easier to install than Eclipse I found). Supports simple refactoring, autocompletion, errors/warnings…

Eclipse Aptana PyDev probably one of the most complete free IDE nowadays (haven’t tested a lot)

Wingware Python IDE a commercial IDE, which has some Django-specific project setup features the ability to debug Django template files.

IntelliJ IDEA Ultimate Edition another commercial IDE which has also a plugin for Python that is under heavy development. I saw some demo which look very promising on the auto-completion (for templates and Python).

Vim which I still use a small touch-fix application. See also: Extra tweaks for Django.


回答 8

PyCharm。到目前为止,我最好尝试过适用于Python,Django和Web开发的IDE。这是完全值得的钱。

PyCharm. It is best the IDE for Python,Django, and web development I’ve tried so far. It is totally worth the money.


回答 9

你们应该结帐PyCharm!这是第一个像样的Django IDE。

You guys should checkout PyCharm! It is the first decent Django IDE.


回答 10

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

Eclipse has the PyDev plugin for python development. Unfortunately, I’m not sure how well it integrates with Django.


回答 11

据我所知,没有适用于Django的“ IDE”,但是有一些现成的支持Django的IDE,特别是模板的Django语法。

名字叫Komodo,它具有很多功能,但并不便宜。如果您不担心源代码控制或调试,那么有一个免费版本称为Komodo Edit

As far as I know there is not “an IDE” for Django, but there are some IDEs that support Django right out of the box, specifically the Django syntax for templates.

The name is Komodo, and it has a lot of features, but it’s not cheap. If you are not worried about source control or debugging then there is a free version called Komodo Edit.


回答 12

Visual Studio有一个实际的Python扩展:http : //pytools.codeplex.com/。真是太棒了。感觉就像我使用任何本地Visual Studio语言进行编码一样。该扩展甚至与Django兼容。最好的是:它是完全免费的。即使对于Visual Studio,它也只需要Visual Studio Shell即可运行,这是完全免费的。

There is an actual Python extension for Visual Studio: http://pytools.codeplex.com/. It’s absolutely fantastic. It feels the same as if I were coding in any native Visual Studio language. The extension is even compatabile with Django. And best of all: it’s totally free. Even for Visual Studio, it only requires the Visual Studio Shell to work, which is completely free.


回答 13

现在,您还可以使用Visual Studio2010。操作方法如下:

  • 下载并安装适用于Visual Studio的Python工具
  • 根据现有代码创建一个新项目(菜单文件新建来自现有代码的项目…
  • 指定您的Django项目文件夹并使用默认值。
  • 右键单击manage.py,然后选择设置为启动文件
  • 在项目属性的“ 调试”选项卡中,在“ 脚本参数 ”中添加“ runserver” 。
  • 您可以设置断点,并附加到Python进程进行调试。如果要调试而不必“附加到进程”,请在脚本参数中使用“ runserver –noreload”。但是,“-noreload”意味着您必须手动停止并重新启动Django开发Web服务器(以识别代码更改)。

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

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

Now you can also use Visual Studio 2010. Here’s how:

  • Download and install Python Tools for Visual Studio.
  • Create a new project from existing code (menu FileNewProject 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).

This is a nice setup if you already use Visual Studio.

Python Tools has been updated. It has built in support for Django now.


回答 14

PyCharm,当然。我几乎全部尝试了它们,但是PyCharm是我发现对任何繁重开发工作最有用的工具。

简单来说,脚本一次使用的是我想到的任何内容(TextMate,Vim,Emacs,TextWrangler等,您都可以命名)。

PyCharm, definitely. I tried them all (almost), but PyCharm is the one I found most useful for any heavy development.

For simple, one time, scripts I use whatever comes to mind (TextMate, Vim, Emacs, TextWrangler, etc., you name it).


回答 15

我已经在PyDev和PyCharm中使用了Eclipse。PyCharm绝对是我尝试过的Django / Python的最佳IDE。它会为所有对象进行适当的模板突出显示和自动补全。它还可以进行跨文件引用。

它相当昂贵,但是绝对是我尝试过的最好的Django IDE。您可以在http://www.jetbrains.com/pycharm/download/上进行30天的评估。

I have used Eclipse with PyDev and PyCharm. PyCharm is definitely the best IDE for Django/Python I have tried. It does proper template highlighting and auto-completion for all objects. It also does cross-file referencing.

It’s quite expensive, but definitely the best Django IDE I have tried. You can try a 30 day evaluation at http://www.jetbrains.com/pycharm/download/.


回答 16

好吧,我一直在用自己的。最近,他们发布了Alpha版本。在这里是pfaide.com/

Well, I’ve been using my own one. Recently they released an alpha version. Here it is at pfaide.com/.


回答 17

我在Eclipse和Pydev上也取得了不错的成绩。尽管我仍然需要打开一个打开到项目目录的外壳来运行manage.py命令。我还一直将其与Bazaar插件一起用于版本控制和与服务器同步代码。

I’ve also had good results with Eclipse and Pydev. Although I still require a shell opened to the project directory to run manage.py commands. I’ve also been using it with the Bazaar plugin for revision control and syncing code with the server.


回答 18

我非常喜欢E Text Editor,因为它几乎是TextMate与Windows 的“连接” 。显然Django是基于Python的,对自动完成功能的支持是有限的(没有像intellisense这样的东西需要专门的IDE来了解每个库的复杂性),但是使用摘要和“单词完成”功能有很大帮助。此外,它还支持Django Python文件和模板文件以及CSS,HTML等。

我已经使用E Text Editor很长时间了,可以告诉您,在使用Django时,它胜过PyDev和Komodo Edit。对于其他类型的项目,PyDev和Komodo可能更合适。

I really like E Text Editor as it’s pretty much a “port” of TextMate to Windows. Obviously Django being based on Python, the support for auto-completion is limited (there’s nothing like intellisense that would require a dedicated IDE with knowledge of the intricacies of each library), but the use of snippets and “word-completion” helps a lot. Also, it has support for both Django Python files and the template files, and CSS, HTML, etc.

I’ve been using E Text Editor for a long time now, and I can tell you that it beats both PyDev and Komodo Edit hands down when it comes to working with Django. For other kinds of projects, PyDev and Komodo might be more adequate though.


回答 19

我也用凯特。凯特的简单性是其最大的特色。它不会妨碍您。(这当然是高度主观的意见。)

Kate包括一个Python代码浏览器插件。但这对IMO没有用。更改代码/视图时不会自动更新。另外,更新时,整个树都将折叠,并且您必须自己再次对其进行扩展。点击次数过多。

相反,我使用了Pâté随附的Source Browser插件。确实确实会导致Kate暂时冻结,但到目前为止没有崩溃或此类事件。

无耻的博客插件:有关将Django与Kate(Pâté)结合使用的更多信息

I use Kate as well. Kate’s simplicity is its biggest feature. It doesn’t get in your way. (This is of course highly subjective opinion.)

Kate includes a Python code browser plugin. But it isn’t useful IMO. No automatic updates when you change the code/view. Also when you update, the whole tree is collapsed, and you have to expand it again yourself. Too many clicks.

Instead, I use the Source Browser plugin that comes with Pâté. It does cause Kate to freeze temporarily sometimes, but no crashes or anything of that sort so far.

Shameless blog plug: more on using Django with Kate (Pâté)


回答 20

如果您喜欢Vim作为编辑器,那么这里有一些有关如何针对Django开发进行调优的建议(直至完整的IDE):http : //code.djangoproject.com/wiki/UsingVimWithDjango

If you like Vim as an editor, here are some suggestions on how to tune it (up to the point of a full fledged IDE) for Django development: http://code.djangoproject.com/wiki/UsingVimWithDjango.


回答 21

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

Editra supports Django Template Language syntax highlighting. You can configure it either as a better Notepad or a basic IDE.


回答 22

我写了一篇有关NetBeans对Django的新的和即将推出的支持的博客文章。当与它已经非常出色的Python,JavaScript,HTML和CSS支持配合使用时,在我看来,它是一个不错的选择!

I made a blog post about NetBeans’ new and upcoming support for Django. When paired with its already fantastic Python, JavaScript, HTML and CSS support, it’s a strong candidate in my mind!


回答 23

安装了Django和django-html捆绑软件的TextMate为您提供语法突出显示和出色的可扩展性。它轻巧且使用有趣。

是指向Python的TextMate的代码完成项目的链接(我自己没有使用过)。至于“智能”(据我理解是内联文档参考),TextMate也有。

TextMate with the Django and django-html bundles installed gives you syntax highlighting and great extensibility. It is lightweight and fun to use.

Here is a link to a code completion project for TextMate with Python (which I haven’t used myself). As for “intellisense” (which I understand to be inline-doc reference), TextMate has that too.


回答 24

来自http://www.wingware.com的Wingware编辑器特定于Python,并且对Python / Django / Zope等具有很好的自动完成功能。

它具有一个内置的Python外壳程序来运行代码片段(或选择并运行),并支持Mercurial / Git等,以及一个内置的unittest / nose / doctest测试运行程序。虽然它是商业性的,但是因为它是用Python编写的,所以它是跨平台的。

我前一阵子买了它,以为它看起来很笨拙,但是我已经尝试了所有这些并继续回来。请注意,我是Windows专家,没有Emacs或Vim技能,因此无法利用它。Mac版本需要X Window,并且似乎更容易出错。

The Wingware editor from http://www.wingware.com is Python-specific with very good auto-completion for Python/Django/Zope, etc.

It has a built in Python shell to run snippets (or select and run) and support for Mercurial/Git, etc. and a built-in unittest/nose/doctest test runner. It’s commercial though, but as it is written in Python, it’s cross platform.

I bought it a while ago, and thought it looked dorky, but I’ve tried them all and keep coming back. Caveat that I am a Windows guy with no Emacs or Vim skills, so leveraging that was not an option. And the Mac version requires X Window and seems to be more glitchy.


回答 25

盖尼

它基于GTK2,快速,轻巧,可用于Linux和Windows。

Geany

It is GTK2 based, fast, lightweight, available for Linux and Windows.


回答 26


回答 27

Ulipad是个不错的选择。 http://code.google.com/p/ulipad/


回答 28

我一直使用Vim或Kate,但我更希望使用成熟的IDE。鉴于它不像Visual Studio那么重。

I have consistently used Vim or Kate, but I would prefer a full-blown IDE. Given it is not as heavy as Visual Studio.


回答 29

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

由于我将Eclipse用于PyDev,因此我使用Platform Runtime Binary + PyDev + Subclipse的精简安装。

I like Eclipse + PyDev and/or eric, myself. The new version of PyDev has some pretty awesome code completion support.

Since I only use Eclipse for PyDev, I use a slim install of just the Platform Runtime Binary + PyDev + Subclipse.