shw1395
V2EX  ›  V2EX

如何上传本地数据库到 GAE

  •  
  •   shw1395 · Sep 7, 2010 · 7199 views
    This topic created in 5751 days ago, the information mentioned may be changed or developed.
    Deploy 只同步文件,我查阅了 http://code.google.com/intl/en/appengine/docs/python/tools/uploadingdata.html#Downloading_and_Uploading_All_Data
    还是没有头绪把本地数据库上传上去。
    我的环境:
    C:\Program Files\Google\google_appengine\google\appengine\datastore

    http://shw1395.appspot.com


    个人感觉创建新节点的步骤并不怎么友好。
    1 replies    1970-01-01 08:00:00 +08:00
    miles
        1
    miles  
       Sep 7, 2010
    appcfg.py upload_data --config_file=xxx_loader.py --filename=xxx.csv --kind=YourModel .

    xxx_loader.py中定义了你的导入规则

    详细请看文档:
    http://code.google.com/intl/zh-CN/appengine/docs/python/tools/uploadingdata.html
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2420 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 00:23 · PVG 08:23 · LAX 17:23 · JFK 20:23
    ♥ Do have faith in what you're doing.