コード例 #1
0
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")
コード例 #2
0
ファイル: admin.py プロジェクト: zoyoe/ectool
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")