DEV Community

Discussion on: Adding Authentication to a REST Framework Django API

Collapse
nobleobioma profile image
Noble Obioma Author

You can create a middleware. These are python classes that hooks into the request/response life cycle and are processed upon every request/response your Django application handles. In then you can have the logic which ascertains that the request made meets the requirements in order to receive a response.