Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to write manual querry in drf

>>> lname = 'Doe'
>>> Person.objects.raw('SELECT * FROM myapp_person WHERE last_name = %s', [lname])
Source by docs.djangoproject.com #
 
PREVIOUS NEXT
Tagged: #write #manual #querry #drf
ADD COMMENT
Topic
Name
2+2 =