def Test(request):
save_path = '/usr/share/newfies/'
name_of_file = ("Avatar")
completeName = os.path.join(save_path, name_of_file+".xlm")
file1 = open(completeName, "w")
toFile = raw_input("Write what you want into the field")
file1.write(toFile)
file1.c
Here is my view.py
import os.path
import commands
def call_report(request):
a = commands.getstatusoutput('/usr/local/freeswitch/bin/fs_cli -x "show
calls"')
return HttpResponse(a)
When i run this command it gives output which you can see...
0uuid,direction,created,created_epoch,nam