google app engine - Import/Include config Python -


is possible store config such config['webapp2_extras.api'] in different file, , include in other?

pseudocode:

# config.py config['webapp2_extras.api'] = {   'option' : value, }  # frontcontroller.py webapp2.wsgiapplication([     webapp2.route('/',handler='mainhandler')   ], config={{config_from_config.py}}) 

i able store config(s) elsewhere frontcontroller!! thanks!

have tried importing config in frontcontroller.py? example

# config.py config['webapp2_extras.api'] = {   'option' : value, }  # frontcontroller.py import config  webapp2.wsgiapplication([     webapp2.route('/',handler='mainhandler')   ], config=config) 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -