Here's how we do it to use custom authentication.
Custom handler in app.yaml
- url: /remoteapi.* script: remote_api.app
Wsgi user application in remote_api.py to override CheckIsAdmin
from google.appengine.ext.remote_api import handler from google.appengine.ext import webapp import re MY_SECRET_KEY = 'MAKE UP PASSWORD HERE'
From here we script load the data that was exported from our live application. Use the same password you created in the python script above.
echo "MAKE UP PASSWORD HERE" | appcfg.py upload_data --email=some@example.org --passin --url=http://localhost:8080/remoteapi --num_threads=4 --kind=WebHook --filename=webhook.data --db_filename=bulkloader-progress-webhook.sql3
WebHook and webhook.data are related to Kind , which we exported from production.
Josh j
source share