views:

228

answers:

1

http://code.google.com/appengine/docs/python/tools/uploadingdata.html is not clearly understand. Where i should call the bulkloader.py or appcfg.py? Should i import the csv file to local Google App Engine SDK first? How to keep the upload and download data process in existing application for datastore synchronization?

+1  A: 

Set Up remote_api, the docs have instructions for both java and python and then run bulkloader.py locally :

bulkloader.py --dump --app_id=<app-id> --url=http://&lt;appname&gt;.appspot.com/remote_api --filename=<data-filename>

if you are using the java sdk, you will need to install the python sdk.

Iggy
run bulkloader.py locally means in the SDk interactive console (http://localhost:8080/_ah/admin/interactive), its first time to do so ...
Ivan Slaughter
That's right, open a command terminal and run the bulkloader script, if you are using the java sdk, you will need to install the python sdk.
Iggy
Thanks in advance Iggy. I'm using phyton SDK. The Console keep saying like this ...: Traceback (most recent call last): File "C:\Program Files\Google\google_appengine\google\appengine\ext\admin\__init__.py", line 209, in post compiled_code = compile(code, '<string>', 'exec') File "<string>", line 1 bulkloader.py --dump --app_id=myapp --url=http://myapp.appspot.com/remote_api --filename=myapp ^ SyntaxError: invalid syntax
Ivan Slaughter
@Ivan No, run it from a command line, not from the SDK console.
Nick Johnson
Yeah Thx Iggy... i'm runing it on CMD (Command Prompt). All records successfully uploaded.
Ivan Slaughter
Thx to you also Nick ...
Ivan Slaughter