Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you want to debug your own script with using data from High Replication Datastore, then read <a href="https://developers.google.com/appengine/docs/python/tools/remoteapi#Using_Remote_API_in_a_Local_Client" rel="nofollow">Using the Remote API in a Local Client</a>. First you need to enable <strong>remote_api</strong> in <em>app.yaml</em> and upload the application. Then you add this part to your script:</p> <pre><code>from google.appengine.ext.remote_api import remote_api_stub def auth_func(): return ('your_username', 'your_password') remote_api_stub.ConfigureRemoteApi(None, '/_ah/remote_api', auth_func, 'your-app-id.appspot.com') </code></pre> <p>Now you access data from High Replication Datastore instead from local mockup.</p> <p>Also if you want to quickly add test data to HRD through console I recommend using PyCharm, which has a feature of running scripts with custom parameters. From PyCharm Menu select Run->Edit Configurations. Create new configuration, set the following parameters:</p> <ul> <li><strong>Name</strong>: Name of the script</li> <li><strong>Script</strong>: Point to your $GAE_SDK_ROOT\remote_api_shell.py</li> <li><strong>Script parametres</strong>: -s your_app_id.appspot.com</li> <li><strong>Working directory</strong>: I recommend setting this. You probably want to test entities and to successfully import class definitions it is best to be in root directory of your application. So set it to ROOT of your application.</li> </ul> <p>Now when you run or debug specified configuration PyCharm will open a python console, prompting you to connect to GAE with your username and password. Now you can use it for manipulating data on Google servers.</p> <p>For more information on remote_api read:</p> <ul> <li><a href="https://developers.google.com/appengine/articles/remote_api" rel="nofollow"> Accessing the datastore remotely with remote_api</a></li> <li><a href="https://developers.google.com/appengine/docs/python/tools/remoteapi" rel="nofollow"> Remote API for Python</a></li> </ul> <p>For more information on Pycharm custom configurations, read:</p> <ul> <li><a href="http://www.jetbrains.com/pycharm/webhelp/creating-and-editing-run-debug-configurations.html" rel="nofollow">Creating and Editing Run/Debug Configurations</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    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.
    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