Raw SQL instead of Django ORM.

26 views
Skip to first unread message

Abhishek Palekar

unread,
Jan 11, 2020, 1:53:52 AM1/11/20
to Django REST framework
Please anyone help me,
instead of django ORM can we use SQL query for left join 10 tables with multiple where and group by conditions to retrieve perticular fields in those,
if yes is it safe to use sql ?
do anyone have alternate solution other than Djnago ORM please tell me.
What proffesionals use to handle complex database operations in django ?

Jason

unread,
Jan 11, 2020, 9:40:33 AM1/11/20
to Django REST framework
if you google the terms django raw sql, the first result is https://docs.djangoproject.com/en/3.0/topics/db/sql/
Reply all
Reply to author
Forward
0 new messages