Django Flashcards

1
Q

What is the request life cycle in django?

A
  1. User requests to view URL
  2. Django determines the root URLconf by looking at the Root_UrlConf setting.
  3. Django looks at all of the URLpatterns in the URLconf for the first one that matches the URL
  4. If it finds a match, it calls the associated view function. and repeats 3-4 if redirected to another urls.py
  5. The view function returns an HTTPResponse
  6. Django converts the HttpResponse to the proper HTTP response, which results in a Web page.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly