Beispiel #1
0
def deletestaff(request, qs):
    qry = "delete from staff_data where uid='" + str(qs) + "'"
    dbconnection.deletedata(qry)
    qry = "delete from user_log where uid='" + str(qs) + "'"
    dbconnection.deletedata(qry)
    return HttpResponseRedirect("http://127.0.0.1:8000/managestaff")
Beispiel #2
0
def deletecourse(request, qs):
    qry = "delete from subject_data where id='" + str(qs) + "'"
    dbconnection.deletedata(qry)
    return HttpResponseRedirect("http://127.0.0.1:8000/managecourse")