Django 开发环境设置问题

发布于 2024-08-29 18:57:13 字数 446 浏览 4 评论 0原文

我正在尝试为 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

青柠芒果 2024-09-05 18:57:13

这里是我设置的环境,它有您想要的组件。我也使用过 pydev 并且它有效,但我更喜欢 Komodo。

我认为你缺少的东西:

  • SCM - 使用 Dropbox 可以,但有一些真正的缺点不使用真正的版本控制系统。示例包括恢复更改、分支、合并等。我同意 Simon
  • 在多个平台上进行开发时使用 virtualenv 确实很有帮助。
  • 我在 Mac 上完成所有这些:)

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:

  • An SCM - Using Dropbox works but there are some real shortcomings by not using a real version control system. Examples include reverting changes, branching, merging, etc. I agree with Simon
  • Using a virtualenv will really help when developing on multiple platforms.
  • I do ALL of this on my Mac:)

HTH

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文