CHAPTER 5

image

Your Blog Website: Templates

Now that you have a thorough grounding in how the django CMS templates are constructed, it is time to build the templates for your blog website. In this chapter, you will:

  1. Start with a fresh, empty install of django CMS.
  2. Create your own base.html template.
  3. Create a CSS file to apply custom styling to your blog.
  4. Create a new template, blogpage.html, that will display a single blog post along with a right sidebar menu listing all posts.
  5. Edit your setting file to apply the new templates to your blog site.

 Note  All of the source code in this chapter is available for download from the book’s website; however, ...

Get Beginning django CMS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.