Show Images On The Templates Of Django Using Google App Engine
i am using google app engine with django to make a small application that it has these features upload images , show images , minipulate images (rotate) well after finishing
Solution 1:
Assuming
- You uploaded the images to the blobstore
- image.key is the blobstore key
- You have a handler named BlobstoreImageHandler for
/pictures/models\.(.*)/
Then you'd do something like
class BlobstoreImageHandler(blobstore.handler.BlobstoreDownloadHandler):
def get(self, resource):
resourse = str(urllib.unquote(resource))
blob_info = blobstore.BlobInfo.get(resource)
self.send_blob(blob_info)
which is straight out of http://code.google.com/appengine/docs/python/blobstore/overview.html#Serving_a_Blob
Post a Comment for "Show Images On The Templates Of Django Using Google App Engine"