How I Can Request A Local Url In My App Engine Application?
I am using Blobs to store json files for my application. What I am trying to achieve is to request an internal url of my application in order to get the relevant file. I have tried
Solution 1:
You don't need to make HTTP requests to yourself in order to read data from the blobstore - you can simply use the BlobReader API.
Solution 2:
This wouldn't on the development server (but will work on the production server) because its single threaded and you can't do a request to yourself from within a request.
There are several workarounds for your issue:
- Use the file write API to store the data.
- Use the multithread dev_server (required to switch to python 2.7 + HRD)
- Store the file asynchronously using queues or deferred.
Post a Comment for "How I Can Request A Local Url In My App Engine Application?"