At long last, we’re at the point of adding content to the MyBlog application. Everything we’ve done so far to build the application has been aimed at creating the infrastructure to enable posting content to the blog.
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 app’s growing complexity, which adds structure and control to the application to help you and your users create and manage content on the MyBlog application.
Let’s establish a naming convention to help us discuss content. Content is the engaging information a user writes and other users read and comment on. 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 into what we’ll call a post, like on a bulletin board, where a user “posts” information they want others to read.