Is your application running slow? You may be performing expensive operations more often than necessary. We can use low-level caching operations to have tight control over our application's performance.
- [Narrator] Caching is an important part…of almost every modern application.…Ultimately it provides the ability for you application…to scale to handle more users,…though there may be other benefits in some applications.…In this section, we'll discuss three types of caching.…We'll start with a low level caching, in this video.…Discuss caching with middleware…and finally look at how to take control of template caching.…Let's start out by discussing low level caching…and the simplest caching driver.…Low level caching may sound difficult,…but it's not.…
It just means that we have the option to control…what gets cached.…This is great because some things…are more cachable than others.…Before you can use caching you have to configure it.…The two fastest cache backends are memcached,…which is built into Django,…and Django redis cache,…which is an add-on for Django using the redis keystroke.…Redis and memcached are separate server processes…and there are key valued data storers,…kind of like a dictionary.…That means that you do have to manage…
Django is one of the world's leading web development platforms. This Python web framework makes your app building experience smoother, faster, and easier. It is a key feature behind the success of many start-ups across the world, including Instagram and Nextdoor. This course introduces next-level advanced concepts to help you build your own professional-grade Django applications.
Author Kevin Veroneau starts off by explaining how class-based views—a powerful, but often poorly understood feature—work in Django. Then learn how to create custom middleware to help organize frequently used code. Have you ever wanted to build a complete RESTful API? Find out how to do just that, starting with a basic read-only API and then adding key-based authentication to allow the full range of CRUD functionality. Plus, discover how to use model managers and the Q method to make it easier to get the data we need to our views and clients.
For the finishing touches, dive into the details of caching to improve application performance, and then add custom management commands to help automate routine tasks.
- Extending class-based views
- Creating custom class-based views
- Managing your database with middleware
- Creating template filters and tags
- Building a RESTful API
- Modeling advanced database relationships and queries
- Using a model manager for your application