the source code of Django book v2