问题
How can I configure Django with SQLAlchemy?
回答1:
You can use SQLAlchemy within a Django project with Aldjemy:
https://github.com/Deepwalker/aldjemy
回答2:
Check this:
Replacing django orm
回答3:
alchemy? :)
Google links:
- replacing-django-s-orm-with-sqlalchemy
- django-sqlalchemy
- googleGroups
回答4:
Please find this little tutorial on how to use SQLAlchemy with Django
回答5:
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).
回答6:
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.
来源:https://stackoverflow.com/questions/1011476/configuring-django-to-use-sqlalchemy