How django works?
Django is made up of a series of many components, which help to receive user request and respond back.
The request-response lifecycle of a Django application involves following steps:
- User hit a request to server like (apache/ngnix).
- Apache/Ngnix contain configuration rule to pass the request to wsgi server.
- wsgi server pass the request to django application.
- Django Application Handled the request in following steps
- Request Middlewares
- Url Router
- Context process
- Template Render
- Response to middleware