Django deployment tools

2020-06-16 05:38发布

问题:

I'm looking for some tool (or set of tools) that could help me automate deploying Django projects with all required dependencies.

I googled for some solutions but I am curious what are your favorite ones.

回答1:

I'll second meder's suggestion: user virtualenv + pip. These will give isolated environments that can be mantained and replicated easily.

Once you got that running, you have two choices:

  • fabric: Is great for simpler setups. You can script many deploy situations (code checkout, multiple servers, etc). Fabric makes little assumptions on what and how you are deploying, so it's pretty flexible.
  • Zope's buildout : is more complex and harder to setup, but can do pretty much any deploy scenario you throw at it.

Best regards



回答2:

You can also have a look at silver-lining. It's a bit early-on, but seems okay, as long as you are doing everything the same way in your project.



回答3:

Are you looking for something like pip requirements?

http://www.saltycrane.com/blog/2009/05/notes-using-pip-and-virtualenv-django/