Debugging mode is not propagate to mounted apps (DispatcherMiddleware) #573

Closed
nbcmayhem opened this Issue Aug 5, 2012 · 1 comment

Comments

Projects
None yet
2 participants

root.py

from flask import Flask
from backend import app as backend

frontend = Flask('root')

@frontend ....
...

frontend.wsgi_app = DispatcherMiddleware(frontend.wsgi_app, {
    '/mountpoint': backend
})

daemon.py

from root import frontend as app

server_debug():
    frontend.debug = True
    frontend.run()

debugger is only available in the frontend domain, not within the mountpoint

Owner

mitsuhiko commented Aug 5, 2012

That is intentional. The dispatcher middleware is working on the wsgi level. If you want that behavior you would have to subclass it and update the config of the inner apps.

mitsuhiko closed this Aug 5, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment