What is the best way to access stored procedures in Django's ORM

前端 未结 7 1204
轻奢々
轻奢々 2020-12-02 08:44

I am designing a fairly complex database, and know that some of my queries will be far outside the scope of Django\'s ORM. Has anyone integrated SP\'s with Django\'s ORM suc

7条回答
  •  广开言路
    2020-12-02 09:26

    Don't.

    Seriously.

    Move the stored procedure logic into your model where it belongs.

    Putting some code in Django and some code in the database is a maintenance nightmare. I've spent too many of my 30+ years in IT trying to clean up this kind of mess.

提交回复
热议问题