Code and configuration used in my Django Deployment Workshop.
Python Ruby
Latest commit b0ee18d Apr 25, 2011 @jacobian jacobian Merged pull request #1 from carljm/typo-fixes.
Typo fixes
Failed to load latest commit information.
apache Fixes found during the class today. Mar 10, 2011
chef Fixes found during the class today. Mar 10, 2011
memcached Working memcached and pgpool configs; strip the local stuff. Feb 18, 2010
mingus-config Fixes found during the class today. Mar 10, 2011
notes Fixes found during the class today. Mar 10, 2011
pgpool A handful of tweaks that came up running through this today: Mar 17, 2010
postgresql Fixes found during the class today. Mar 10, 2011
slides Finalized slides. Mar 10, 2011
ssh Added an example of how you can use `.ssh/config` to make ssh'ing to … Feb 17, 2010
vagrant Oops, don't commit .vagrant files. Mar 9, 2011
.gitignore Clarified a few bits in the script. Feb 18, 2010
LICENSE.txt A bunch of verbiage, and a LICENSE. Feb 15, 2010
README.rst Updated the README with new info. Mar 9, 2011


Django Deployment Workshop

This is code and configuration for my Django Deployment Workshop.

Here you'll find example config used to set up an example deployment environment for a Python WSGI stack, including:

I've made comments and notes where possible, but it's entirely possible that this won't make a whole lot of sense without actually taking the class. But this is all BSD-licensed, so please feel free to use it as a starting point for you own deployments.

The Django site used for the examples is Kevin Fricovsky's Mingus, a blog application built on a bunch existing reusable apps.

Getting the app running

See Mingus's INSTALL doc for the basics of getting Mingus running. If you're on a VM or remote server remember that you'll have to runserver to get Django listening on public IP interfaces.

After than, start deploying. My script for the install is in notes; be sure to follow along with the most recent one (PyCon 2011 as of this writing). The other scripts are there for posterity.

If you're not using Ubuntu 10.04 LTS then YMMV.

Further reading

By my count this three-hour class covers about a dozen different pieces of technology. Below are some links to documentation of these various bits. If you read through all of it until you understand every command and configuration option I've used, you'll be well on your way towards groking this stuff. Good luck!