1👍
✅
since no one answers this, I have some conclusions myself
https://groups.google.com/d/topic/python-web-sig/OEahWtsPwq4/discussion
It’s basically a wsgi design behavior. Wsgi will not care what happens after respons iterator stops.
👤est
3👍
You can write your own middleware (specifically using process_response
) if you need to perform tasks after the response has been assembled. There would be no point in having a signal handler after the response is ‘finished’ as by that stage, you have executed your view and rendered your template.
Source:stackexchange.com