Ejemplo n.º 1
0
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)
Ejemplo n.º 2
0
def ajax(request):
    a = Example()
    json_string = a.get_datatables_records(request)
    return HttpResponse(json_string, mimetype="application/json")