Blog Archive for June 25, 2010

Using Environment Variables in Django Settings.py

June 25, 2010

Our release team like environment variables. It would be nice to deploy a Django site where there are no code changes and all config is handled through environment variables.

Thankfully, it's straightfoward, just add an import to settings.py and then use os.environ dictionary to pick up the values you need. …

Mercurial Branches

June 25, 2010

I was looking for a way of storing different streams of development when working with Mercurial. We have developers that want to start work on something, then branch off and fix a bug before returning to what they were doing before. We used to use CVS, and so people are …