残念ながら、ブロブ キーをデータストアに保存するというミスを犯したため、自分で移行する必要があります。
マスター/スレーブから HRD への移行ドキュメントを使用しています:
https://developers.google.com/appengine/docs/adminconsole/migration
最後に、彼らは新しいキーを取得するために以下に言及します:
from google.appengine.ext import blobstore
def GetNewBlobKey(old_key)
return blobstore.BlobMigrationRecord.get_new_blob_key(old_key)
上記とまったく同じように実行しますが、以下のエラーが発生します。
'module' object has no attribute 'BlobMigrationRecord'
Traceback (most recent call last):
File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1511, in __call__
rv = self.handle_exception(request, response, e)
File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1505, in __call__
rv = self.router.dispatch(request, response)
File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1253, in default_dispatcher
return route.handler_adapter(request, response)
File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1077, in __call__
return handler.dispatch()
File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 547, in dispatch
return self.handle_exception(e, self.app.debug)
File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 545, in dispatch
return method(*args, **kwargs)
File "/base/data/home/apps/1.359990895908922231/main.py", line 1302, in post
userEntity.imageUrlBlobKey = blobstore.BlobMigrationRecord.get_new_blob_key(userEntity.imageUrlBlobKey)
AttributeError: 'module' object has no attribute 'BlobMigrationRecord'
どんな助けでも大歓迎です