Added support for mount wsgi apps
This commit is contained in:
parent
e5262a9cd5
commit
46d901e830
1 changed files with 9 additions and 0 deletions
|
|
@ -65,6 +65,15 @@ def prepare_app():
|
|||
|
||||
#app.add_hook('before_request', print_memory)
|
||||
|
||||
for added_app in config.apps:
|
||||
|
||||
a=import_module(added_app)
|
||||
#print(added_app, file=sys.stdout)
|
||||
app_name=getattr(a, config.apps[added_app][0])
|
||||
|
||||
app.mount(config.apps[added_app][1], app_name)
|
||||
|
||||
|
||||
set_timezone()
|
||||
|
||||
if error_reporting:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue