4 ms·
Thanks, it's great to see Django adding slowly but surely in all sorts of places. By the way, have you looked at tortoise orm, which is a fully async python OR
by uniqueuid 5y ago
Thanks, it's great to see Django adding slowly but surely in all sorts of places.
By the way, have you looked at tortoise orm, which is a fully async python ORM with very Django-like syntax? [1]
[1] https://github.com/tortoise/tortoise-orm https://github.com/tortoise/tortoise-orm
- allen-munsch 5y agofor an ongoing discussion see: https://forum.djangoproject.com/t/asynchronous-orm/5925/46 https://forum.djangoproject.com/t/asynchronous-orm/5925/46
- wraptile 5y agoNot OP but I've been experimenting with tortoise and it's pretty awesome! I love that it works with pydantic out of the box so it integrates with FastApi really nicely. I just started a small side project with fastapi + tortoise + postgresql + vuejs and so far it's a pretty fun and smooth experience!
- privacyonsec 5y agoIndeed, but the goal of the project is to support django ORM, if you already have a backend running under django and you wanna migrate to async, you will have to write a lot of wrappers. with this module it patches django (QuerySet) with async methods. You still have to update your code for example MyModel.objects.get(name="something") becomes MyModel.objects.async_get(name="something") so even though tortoise orm syntax's is similar to django, everything else can be different, migrations etc ...