Blog Archive for August 3, 2010

Mercurial through nginx and fastcgi

August 3, 2010

I'm changing from using Apache for web serving to Nginx, mainly because my virtual machine is short on memory. This post covers how to host a mercurial repository through Nginx, and follows on from the Apache version at http://drumcoder.co.uk/blog/2010/jun/10/mercurial-repository-apache-fedora-11/. You need the same hgweb.config file in /var/hg/cgi-bin as defined …

Implementing Django Auth Back Ends

August 3, 2010

Here's some Django code to implement an auth backend using a web service for authentication. This relies on memcached to store the user details, and doesn't need a backend database to store anything.

The code behind LoginSessionObject.login() will perform the web service call, and it returns a security token which …