1# You MUST pass the parameters list to avoid SQL Injection
2# https://docs.djangoproject.com/en/3.2/topics/db/sql/#passing-parameters-into-raw
3
4>>> lname = 'Doe'
5>>> Person.objects.raw('SELECT * FROM myapp_person WHERE last_name = %s', [lname])
6