7 Doing it with style

 

This chapter covers

  • Application styling
  • Integrating Bootstrap styling
  • Creating a scalable MyBlog
  • Using Blueprint namespaces
  • Application configuration
  • Integrating the Flask Debug Toolbar
  • Configuring logging information

Creating a web application pulls together many concepts and technologies. To create an engaging application, it’s necessary to think about the look and feel, or style. For a web application, this is largely provided by using CSS styling applied to the HTML content.

Integrating good styling practices raises the bar of complexity an application encapsulates. To help maintain growing complexity, it’s necessary to think about project structure and the use of namespaces. Project structure and namespaces help the project grow and scale in a way that keeps the complexity manageable. This chapter lays the foundation for the MyBlog application so that it can grow and evolve in a way that will help you maintain clarity about the goals of the application and stay ahead of the complexity curve.

7.1 Application styling

Creating an application with interesting and useful features is necessary to keep users actively engaged in any application. The feature set is essential, but it’s not the only thing needed to capture and keep users’ attention. The way your application looks is a critical factor in what your users will expect in a modern computer system.

7.1.1 Creating appealing styles

7.1.2 Styling consistency

7.1.3 Normalizing styles

7.1.4 Responsive design

7.2 Integrating Bootstrap

7.2.1 The previous example, now with Bootstrap

7.3 Helping MyBlog grow

7.3.1 The Flask app instance

7.4 Namespaces

7.4.1 Flask Blueprints

7.5 Navigation