Trending Topics

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:

  1. User hit a request to server like (apache/ngnix).
  2. Apache/Ngnix contain configuration rule to pass the request to wsgi server.
  3. wsgi server pass the request to django application.
  4. Django Application Handled the request in following steps
    1. Request Middlewares
    2. Url Router
    4. Context process
    5. Template Render
    6. Response to middleware