def checkurl(request): imgs = ImageData.all() for img in imgs: img.url = "http://" + request.META[ 'HTTP_HOST'] + "/admin/fetchimage/" + img.parent().parent( ).name + "/" + str(img.parent().key().id()) + "/" + str( img.idx) + "/" img.put() return HttpResponse("ok")
def checkurl(request): imgs = ImageData.all() for img in imgs: img.url = "http://" + request.META['HTTP_HOST'] + "/admin/fetchimage/" + img.parent().parent().name + "/" + str(img.parent().key().id()) + "/" + str(img.idx) +"/" img.put() return HttpResponse("ok")