Django book study - chapter 3 and 4