Source from the Django tutorial: https://docs.djangoproject.com/en/1.5/intro/tutorial01/