Django code for the Python portion of my master's thesis.