from django.shortcuts import render_to_response
import MySQLdb


def book_list(request):
    db = MySQLdb.connect(user='root', db='samp_db', passwd='0909', host=
        'localhost')
    cursor = db.cursor()
    cursor.execute('select name from student order by name')
    names = [row[0] for row in cursor.fetchall()]
    db.close()
    return render_to_response('book_list.html', {'names': names})

698695f407d2f34cb1dd283150c5d97d82a50ce6
<mask token>

<mask token>


def book_list(request):
    db = MySQLdb.connect(user='root', db='samp_db', passwd='0909', host=
        'localhost')
    cursor = db.cursor()
    cursor.execute('select name from student order by name')
    names = [row[0] for row in cursor.fetchall()]
    db.close()
    return render_to_response('book_list.html', {'names': names})

from django.shortcuts import render_to_response
import MySQLdb


def book_list(request):
    db = MySQLdb.connect(user='root', db='samp_db', passwd='0909', host=
        'localhost')
    cursor = db.cursor()
    cursor.execute('select name from student order by name')
    names = [row[0] for row in cursor.fetchall()]
    db.close()
    return render_to_response('book_list.html', {'names': names})
