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
Post a Comment