Chapter 5: Working with Models
Storing data in a database is a common practice in most web applications. In a Django project, it involves working with Django models. We will create a database model (for example, blog posts and movies) and Django will turn this model into a database table for us. We will also explore a powerful built-in admin interface that provides a visual way of managing all aspects of a Django project, such as managing users and making changes to model data.
In this chapter, we will be covering the following topics:
- Creating our first model
- Managing migrations
- Accessing the Django admin interface
- Configuring for images
- Serving stored images
- Adding a movie model to admin