I am running a Django server locally using runserver_plus with –nothreading option.
Sometimes I send a request to any endpoint (from different clients, like the React frontend running in Google Chrome, Django admin, or Postman) and it takes a very long time to respond (usually 1.5+ minutes). Let’s call the first request #1. While this request is being processed, if I open another tab and open any endpoints – thus, send request #2, the server immediately responds to request #2 and then immediately responds to request #1.
The processing of request #1 does not start executing until the processing of request #2 is finished.
To clarify: it is not a problem with the view related to request #1. The view does not even start executing.
Django 4.2, Django extensions 3.2, DRF 3.15.