You can print a queryset\'s SQL as follows:
print str(queryset.query)
however, for some reason this removes quotation marks, so you get:
If this is for debug purpose you should look into django-debug-toolbar that will show you all queries ran for any view you're looking at