Configuring Django to use SQLAlchemy [closed]

天涯浪子 提交于 2019-12-02 22:10:50
Mihail Krivushin

You can use SQLAlchemy within a Django project with Aldjemy:

https://github.com/Deepwalker/aldjemy

Check this:

Replacing django orm

Please find this little tutorial on how to use SQLAlchemy with Django

There are many benefits of using SQLAlchemy instead of Django ORM, but consider developing a built-in-Django choice of SQLAlchemy (to have something called a production ready)

By the way, Django ORM is going better - in Django 1.11 they added UNION support (a SQL basic operator), so maybe some day there will be no need to change ORM.

I have experience building Django + SQLAlchemy Core, and it's a good combination for data-analysis applications.

Here is an article https://djangostars.com/blog/merging-django-orm-with-sqlalchemy-for-easier-data-analysis/

And here is my talk on Djangocon Europe 2019 about that, where I compare Django ORM & SQLAlchemy Core for such type of apps, highlight integration steps and which 'side-effects' to expect if you have such union (like writing tests).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!