0
불행히도 데이터 저장소에 내 BLOB 키를 저장하는 실수를 했으므로 직접 마이그레이션해야합니다.BlobMigrationRecord 오류?
내가 HRD 마이그레이션 문서에 마스터 - 슬레이브을 사용하고 있습니다 :
from google.appengine.ext import blobstore
def GetNewBlobKey(old_key)
return blobstore.BlobMigrationRecord.get_new_blob_key(old_key)
내가 정확하게 수행
https://developers.google.com/appengine/docs/adminconsole/migration
를 결국, 그들은 새로운 키를 얻기 위해 아래에 언급 위 오류는 다음과 같이 표시됩니다.
'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'
reciated
사용중인 SDK 버전은 무엇입니까? –
가장 최근의 1.7.0 사용 –