Skip to content
Discussion options

You must be logged in to vote

So after picking the framework apart over a couple of days, I've come to the conclusion that the dev server does not support this.
Which is a shame, since switching over to hypercorn would be pointless, as I would be stuck with maxworkers=1 anyway because of the way my app is structured (webserver is not its main component, but other components register blueprints of their own).

As such, I've come up with this hack. I replace url map class to enforce it always returns a prefixed map adapter. This way only URL building is affected, but not URL routing. You might want to

import quart
from quart.routing import QuartMap
from werkzeug.routing import MapAdapter


class CustomQuartMap(QuartMap):…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@aenglander
Comment options

@the-vindicar
Comment options

Answer selected by the-vindicar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants