8 Getting Started With MyBlog

 

This chapter covers

  • Application Styling
  • Integrating Bootstrap Styling
  • Creating a Scalable MyBlog
  • Using Blueprint Namespaces
  • Application Configuration
  • Integrating the Flask DebugToolbar
  • 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 the user of CSS styling applied to the HTML content.

Integrating good styling practice 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 helps 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 complexity.

8.1 Handling Application Styling

Creating an application with interesting and useful features is necessary to keep users actively engaged in any application you create. 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 your users will expect in a modern computer system.

8.1.1 Creating Appealing Styles

 
 
 

8.1.2 Styling Consistency

 
 

8.1.3 Normalizing Styles

 
 

8.1.4 Responsive Design

 
 
 

8.2 Integrating Bootstrap

 
 

8.2.1 Bootstrap Version

 
 
 

8.2.2 Previous Example Now With Bootstrap!

 
 

8.3 Helping MyBlog Grow

 
 
 
 

8.3.1 The Flask app Instance

 
 

8.4 MyBlog Namespaces

 
 
 
 

8.4.1 Flask Blueprints

 
 
 
 

8.4.2 Add Blueprints To MyBlog

 
 
 

8.4.3 Create the About Page

 

8.4.4 Refactored App Instance

 
 
 

8.5 MyBlog Navigation

 
 
 
 

8.5.1 Creating Navigation Information

 

8.5.2 Displaying the Navigation Information

 
 
 

8.5.3 MyBlog's Current Look

 

8.6 Application Configuration

 
 
 

8.6.1 Configuration Files

 
 
 

8.6.2 Private Information

 
 
 
 

8.7 Flask Debug Toolbar

 
 
 

8.7.1 FlaskDynaConf

 
 

8.8 Logging Information

 
 

8.8.1 Configuration

 
 
 
 

8.9 Adding a favicon

 
 
 

8.10 Summary

 
 
 
 
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage
test yourself with a liveTest