some code from the Django tutorial

testing the commit function, and all that stuffs