I tried to read a file in a view like this:
def foo(request):
f = open('foo.txt', 'r')
data = f.read()
return HttpResponse(data)
I tried to place the foo.txt in almost every folder in the project but it still returns
[Errno 2] No such file or directory: 'foo.txt'
So does anybody knows how to open a file in app engine patch? Where should i place the files i wish to open? many thanks. I'm using app-engine-patch 1.1beta1