News for hackers. Stuff that matters.
Re:Django 3 by m_ke on Monday December 02, 2019 @12:36PM (#21684608)
Django ORM is not async so using it with FastAPI would block the event loop. I guess you could wrap the calls in sync_to_async from asgiref but it wouldn't be pretty.

Another option is using something like Tom Christie's orm project (https://github.com/encode/orm), which is a wrapper on top of sqlachemy with a django like interface.

Re:Django 3 by hultner on Monday December 02, 2019 @06:39PM (#21688336)
FastAPI runs blocking IO/sync functions in a separate thread pool to work around this issue.
Re:Django 3 by mattrp on Monday December 02, 2019 @02:26PM (#21685882)
Thanks for the suggestion - very interesting.