from django.db import connection
@render_to('test.html')
def test(request)
cursor = connection.cursor()
cursor.execute("SELECT * FROM auth_user WHERE id= %s", [17])
row = cursor.fetchone()
dow = {}
dow['id'] = row[0]
dow['username'] = row[1]
#raise Exception(dow)
return {'dow':dow}
#################################################################
#template
{{ dow.username }}
SQL