Mastering Django Middlewares: A Guide to Customizing Request and Response Objects
Introduction We all know that Django is an amazing web framework. It is very easy to use and has a lot of features. One can easily create a web application with Django. But what if you want to add some custom functionality to your application. FLet’s say you want to keep track of every request made to your app, or maybe you want to modify the request before it gets to the view or change the response before it’s sent to the client....