SQLAlchemy and django, is it production ready?

后端 未结 5 977
鱼传尺愫
鱼传尺愫 2020-12-04 22:25

Has anyone used SQLAlchemy in addition to Django\'s ORM?

I\'d like to use Django\'s ORM for object manipulation and SQLalchemy for complex

5条回答
  •  执念已碎
    2020-12-04 22:59

    I've done it before and it's fine. Use the SQLAlchemy feature where it can read in the schema so you don't need to declare your fields twice.

    You can grab the connection settings from the settings, the only problem is stuff like the different flavours of postgres driver (e.g. with psyco and without).

    It's worth it as the SQLAlchemy stuff is just so much nicer for stuff like joins.

提交回复
热议问题