The code of the official tutorial in https://docs.djangoproject.com/en/dev/intro/