My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
RemoteAccess  
Remote access to the production server.
Updated Aug 25, 2009 by curtis.t...@gmail.com

In app-engine-patch we've integrated a remoteapi handler, so admins with a Google Account (Google Apps/Domain accounts don't work!) can run manage.py syncdb, manage.py shell, and other commands on the production server:

manage.py shell --remote
>>> from myapp.models import Person
>>> Person.all()[0].delete() # deletes a person from the production datastore!

All datastore access will be routed to the production server, so you can do migrations or clean up your data, for example. Read the remote_api article for more information.

Settings

The following settings are available:

DATABASE_OPTIONS = {
    # Override remoteapi handler's path (default: '/remote_api').
    # This is a good idea, so you make it not too easy for hackers. ;)
    # Don't forget to also update your app.yaml!
    'remote_url': '/remote-secret-url',

    # !!!Normally, the following settings should not be used!!!

    # Always use remoteapi (no need to add manage.py --remote option)
    'use_remote': True,

    # Change appid for remote connection (by default it's the same as in your app.yaml)
    'remote_id': 'otherappid',

    # Change domain (default: <remoteid>.appspot.com)
    'remote_id': 'otherappid',
}

Sign in to add a comment
Powered by Google Project Hosting