Code for parts 1-6 of the django tutorial as for version 1.5 (https://docs.djangoproject.com/en/1.5/intro/tutorial01/)