11 I’ve got something to say
This chapter covers
- Creating and modifying MyBlog content posts
- Creating and displaying content posts
- Creating and displaying post comments
- Notifying users about posts and comments
- Handling errors
At long last we're at the point of saying something and adding it as content to the MyBlog application. Everything we've done so far to build the application was aimed at creating the infrastructure to provide posting content to the blog as a feature.
You've created a database to persist information the MyBlog application manages over time. In addition, you've created users with roles so those users can register with and use the application. You've also modularized the application using Flask Blueprints to help manage the apps growing complexity.
That adds structure and control to the application to help you and your users create and manage content added to the MyBlog application.
Let's establish a naming convention to help us think about content. Content is the engaging information a user writes, and other users read and comment on attached to the content. Content has an author, a creation timestamp, an update timestamp, and a title. The author, timestamps, and title are all associated with the content and its metadata.
We'll gather this information together into something we'll call a "post," like on a bulletin board, where a user "posts" information they want others to read.