Django 开发环境设置问题
我正在尝试为 Django 项目建立一个良好的开发环境,我将在两个不同的物理位置进行该项目。我有两台 Mac 机器,一台在家,一台在工作,我的大部分开发工作都在这台机器上进行。我目前在其中一台机器上托管一个 Ubuntu 虚拟机来托管 Django 环境,在其上安装 DropBox,并从我的 Mac 编辑源代码。当我保存代码文件时,更改会通过 DropBox 同步到 Ubuntu VM,并且 Django 开发服务器会因更改而自动重新启动。这种方法过去效果很好,但我现在开始使用 DropBox 来做很多其他事情,并且不希望在我使用的每台虚拟机上下载所有这些内容。另外,我想开始使用 Eclipse + PyDev 来调试代码并完成代码。目前,我使用 TextEdit,它很棒,但不支持调试或完成。
那么我有什么选择呢?我考虑过在拇指驱动器上设置一个 Parallels VM,上面有我的整个环境(包括 Eclipse),但这有其自身的问题。还有其他想法吗?
I'm trying to set up a good development environment for a Django project that I will be working on from two different physical locations. I have two Mac machines, one at home and one at work that I do most of my development on. I currently host a Ubuntu virtual machine on one of the machines to host the Django environemnt, install DropBox on it, and edit source code from my Mac. When I save the code file, the changes get synced over DropBox to the Ubuntu VM and the Django development server automatically restarts because of the change. This method has worked well in the past, but I am starting to use DropBox for a lot of other things now and don't want all of that to be downloaded on every virtual machine I use. Plus, I want to start using Eclipse + PyDev to be able to debug code and have code completion. Currently, I use TextEdit which is great, but doesn't support debugging or completion.
So what are my options? I thought about setting up a Parallels VM on a thumb drive that has my entire environment on it (Eclipse included), but that has its own problems. Any other thoughts?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这里是我设置的环境,它有您想要的组件。我也使用过 pydev 并且它有效,但我更喜欢 Komodo。
我认为你缺少的东西:
HTH
Here is the environment I set up and it has the components you are after. I have used pydev as well and it works but I prefer Komodo.
Things which I think you are missing:
HTH