show output of file on client side using jquery + javascript .
- by tazimk
Hi,
Written some code in my view function :
This code reads a file from server . stores it in a list .passes to client
def showfiledata(request):
f = open("/home/tazim/webexample/test.txt")
list = f.readlines()
return_dict = {'list':list}
json = simplejson.dumps(list)
return…