What you'll learn
In this Project you’ll follow along with our instructions to add Django models to a blog.
- Start with a basic blog that has static data and refactor it to use a persistent post model.
- Create a user app with a user model that extends Django's UserAdmin model to provide authentication.
- Replace existing static blog post data with a Blog Post model that is connected to a database.
- Add features to the blog by adding “tags” and a user models that relate to the post model.
Table of contents
- Set up your local environment for projects. We'll walk you through everything you need to know, including how to install and configure your environment to be able to complete all of the tasks.
- In this module, we're going to create a user app with a user model that extends Django's UserAdmin model to provide authentication.
- In this module, we will replace existing static blog post data with a Blog Post model that is connected to a database.
- In this module, we will add tags to each post in order to organize them better by topic. To do that we'll create a new `Tag` model with a relationship to the `BlogPost` model.
Course FAQ
Models are how Django apps access and manage data. Once you've set up a model for your app, it acts as a middle man - drawing from the database for you.
This project is great for starting Python Django developers looking to build better, smarter, and faster.
In this project, we will create a simple app to add various Django models to - including UserAdmin for authentication, a database-connected blog post model, and a taag model to interact with the blog post model.
This is a beginner-level project but you will want to have at least a basic knowledge of Python's Django framework.