Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>assuming you are using high replication datastore now...</p> <p>Your app_id is probably wrong, and you also need to pass the address parameter. I whipped this up a while back while reading the oreilly book for appengine(book is severely out of date and not recommended)</p> <pre><code>def attach_to_app(app_id, user=None, password=None, path=None, address=None): """ attaches to app_id instance at address (default: &lt;app_id&gt;.appspot.com) if you don't specify a user/password you will be prompted for one if you don't specify an address it is assumed to be &lt;app_id&gt;.appspot.com path: path to remote_api handler, if not specified, will use /_ah/remote_api """ path = path or "/_ah/remote_api" if not address: address = "%s.appspot.com" % app_id init_remote_api(app_id, path, address, user=user, password=password) def auth_func(): """ function to prompt user for credentials """ email_address = raw_input("Email Address: ") password = getpass.getpass("Password: ") return email_address, password def init_remote_api(app_id, path, address, user=None, password=None): """ generic wrapper to initialize the remoteapi for a given path required ========= app_id : the app_id of the application to connect to path: the path to the remote_api handler ex: /_ah/remote_api address: server to connect to ex: myapp.appspot.com if user and password are not specified you will be prompted on connection if needed """ if user and password: def my_auth(): return (user, password) else: my_auth = auth_func remote_api_stub.ConfigureRemoteApi(app_id, path, my_auth, address) remote_api_stub.MaybeInvokeAuthentication() os.environ["SERVER_SOFTWARE"] = "Development (remote_api)/1.0" # example APP_ID = "s~myapp" # when hrds was introduced it became necessary to specify app_id and address note the "s~..." ADDRESS = "myapp.appspot.com" attach_to_app(APP_ID, address=ADDRESS) </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload