Chapter 8. Building a Social news SiteΒΆ
(Topics introduced: This chapter uses techniques learnt in previous chapters, and introduce Caching and Testing.)
Diving in. [Code listing]
- Introduce caching.
- The various caching backends. Page level caching. More granular caching.
- Introduce testing for Django.
- Testing Django models using doctests, and unittests. Testing Django views.
Walking though the code. In this chapter, we walk through the code, to see how all these fit together.
- Performance tuning the code.
- Logging the queries used, through a middleware. When select related makes sense. Profiling Django applications.