Created
September 29, 2010 10:43
-
-
Save maplpro/602544 to your computer and use it in GitHub Desktop.
How to change app.yaml before you deploy it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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