def create_datastore_client(http=None):
credentials = oauth2client.GoogleCredentials.get_application_default()
if not http:
http = httplib2.Http()
credentials.authorize(http)
return datastore.Client(credentials=credentials)
评论列表
文章目录