[BUILD-423] Update our project to use ASGI (PR #2147)


Proposed changes

This PR adds asgi.py, the uvicorn dependency in production and updates Procfile so that future deployments use gunicorn with a uvicorn worker class.

The goal with that is to enable django to handle async views.

How to reproduce

  • Staging deploy should pass
  • All tests should pass, everything should work as usual
  • WIP: should be able to use http streaming response

Screenshots and videos


Further comments



Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.82%. Comparing base (5082026) to head (5139838).

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #2147   +/-   ##
  Coverage   97.82%   97.82%           
  Files         156      156           
  Lines       21841    21841           
  Hits        21365    21365           
  Misses        476      476           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.