def listall(request): a = Example() table_id = "Example" table = a.get_table(table_id, "display") c = {'table':table,'table_id':table_id,'media':a} return render_to_response('example.html', c)
def ajax(request): a = Example() json_string = a.get_datatables_records(request) return HttpResponse(json_string, mimetype="application/json")