Export from AppEngine database to the local development database?

后端 未结 3 1945
小鲜肉
小鲜肉 2020-12-30 10:28

Is there a way to export the data on my AppEngine database to the development server (for testing purposes etc.) ?

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-30 10:42

    Yes! Check out Google's "Uploading and Downloading Data"

    If you'd like to test how your data works with the app before uploading it, you can load it into the development server. Use the --url option to point the tool at the development server URL. For example:

     appcfg.py upload_data --config_file=album_loader.py --filename=album_data.csv --kind=Album --url=http://localhost:8080/remote_api 
    

    The subsection on uploading and downloading all data is also worth looking at.

提交回复
热议问题