如何在云中完全开发Django项目?

时间:2015-06-26 09:20:41

标签: python django cloud

我一直在使用Sublime Text在Linux上使用Django一段时间,但我不断切换到Windows进行图形设计和游戏。我想知道什么是在云中完全开发Django的最有效方法,而不必为我触摸的每个操作系统设置新的Django环境。如果我可以从DigitalOcean同步项目文件并在Sublime Text上编辑它们将会很棒,因为来自PythonAnywhere,Cloud9等的在线IDE /终端非常缓慢且无响应。

2 个答案:

答案 0 :(得分:0)

Developing directly in production environment is highly discouraged. You should develop locally using version control systems (git) and test suites to check everything works before the deploy.

Once you've checked everything works, you can pull changes from the remote repository to apply the modifications or use something like jenkins for continuous integration.

But, if you still want to modify your code directly in the cloud. Pycharm is a nice IDE that allows you to work with remove projects. I don't know if this is possible with Sublime.

答案 1 :(得分:0)

Do you not use git ? You'd just have to push and pull code changes from all your different machines after you've cloned your entire project repository for the first time.

As far as setup of your environment goes, learn to use build scripts or frameworks, like Vagrant/Chef etc. Use a CI too, to find out if your builds fail.