SQLAlchemy and django, is it production ready?

后端 未结 5 976
鱼传尺愫
鱼传尺愫 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 23:04

    What I would do,

    1. Define the schema in Django orm, let it write the db via syncdb. You get the admin interface.

    2. In view1 you need a complex join

    
        def view1(request):
           import sqlalchemy
           data = sqlalchemy.complex_join_magic(...)
           ...
           payload = {'data': data, ...}
           return render_to_response('template', payload, ...)
    
    

提交回复
热议问题