Google datastore backup to local dev_appserver

不打扰是莪最后的温柔 提交于 2019-12-12 04:27:11

问题


I'm trying to follow those instructions: https://gist.github.com/jehna/3b258f5287fcc181aacf

I've downloaded my backup, made the script go to the path but it seems like the code won't get into the loop "for record in reader:" on windows. I read about it and from my impression it has to do with to format of the file (leveldb) which is not supported in windows that good. Do you have any insights/solutions about that?

Thanks


回答1:


This code work on windows when chaging file openning permissions from 'r' to 'rb' in windows



来源:https://stackoverflow.com/questions/37203304/google-datastore-backup-to-local-dev-appserver

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!