Skip to content

Instantly share code, notes, and snippets.

@maplpro
Created September 29, 2010 10:43
Show Gist options
  • Save maplpro/602544 to your computer and use it in GitHub Desktop.
Save maplpro/602544 to your computer and use it in GitHub Desktop.
How to change app.yaml before you deploy it
import yaml
res = yaml.load( file( 'app.yaml', 'r' ) )
to_change = [x for x in res[ 'handlers' ] if x[ 'url' ] == '/project' ][ 0 ]
to_change[ 'login' ] = 'admin'
yaml.dump( res, file( 'app.yaml', 'w' ) )
yaml.dump( { 'proxy_urls' : 'urls' }, file( 'settings.yaml', 'w' ) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment