Как происходит цикл представления на основе классов в django?

  1. got request
  2. a worker initialize a class based view instance
  3. returns a response and destroies the view instance

или

  1. view instance is initialized when server starts up
  2. workers wait in queue to get response and returns a response from view instance
  3. view instance lives forever

Я вдруг осознал, что использую Django уже несколько лет и до сих пор не знаю, как он работает... какой из них? Спасибо

Вернуться на верх