django tutorial from https://docs.djangoproject.com/en/dev/intro/