[英]Simultaneous Google Datastore and Blobstore Upload With Google App Engine (Python)
[英]migrating images to google app engine datastore or blobstore
我有一個屬性模型,其中包含一個字段image_url。
class Property(ndb.Model):
date_created=data.UTCDateTimeProperty(auto_now_add=True)
# some other fields here
image_url = ndb.StringProperty(indexed=False)
和圖像模型
class Image(ndb.Model):
property = ndb.KeyProperty()
file = ndb.KeyProperty(indexed=False)
# some other fields
image_url = ndb.StringProperty(indexed=False)
現在,我的本地計算機中每個屬性的圖像數量為n。 每個圖像的名稱都映射到csv文件中的相應屬性ID。 我想將所有這些圖像從本地計算機批量上傳到Google App Engine數據存儲區或Blobstore。 我嘗試使用Google進行搜索,但是覺得自己被困住了,我們將不勝感激任何幫助或參考。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.