Django Raw and Raw SQL

Django Raw and Raw SQL

 


Django Raw and Raw SQL

published on 02 Mar 2010

 

Django Raw is pretty sweet. Basically, you use it like so:

from models import Model

query = "SELECT * FROM model"
models = Model.objects.raw(query)

你可能感兴趣的:(django)