Display process of a static page.

  1. The browser sends an HTTP request for a URL to the server.
  2. Django's URL dispatcher (urls.py) matches the URL against the configured patterns and selects the corresponding view.
  3. The view function receives the HttpRequest object and, for a static page, simply asks the template engine to render a template with render(request, 'template.html').
  4. The template engine reads the template file, processes its tags and returns the produced HTML as a string.
  5. The view wraps that HTML in an HttpResponse and returns it.
  6. Django sends the response back to the browser, which displays the page.