O'Reilly logo

Learning Django Web Development by Ratan Kumar, Sanjeev Jaiswal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Flatpages

Web applications may contain pages that are static in nature. For example, your website may include a set of help pages that rarely change. Django provides an application called flatpages to serve static pages. The application is pretty simple; it provides you a data model to store various bits of information about each page, including the following:

  • The URL
  • The title
  • The content
  • The template name
  • Whether registration is required to view the page

To use the application, you can simply enable it in the INSTALLED_APPS variable in the settings.py file and add its middleware to the MIDDLEWARE_CLASSES variable. After that, you can store and manage your static pages using a data model provided by the flatpages application.

Humanize

The humanize application ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required