Skip to content

Use case for Cheroot and documentation #644

Closed Answered by webknjaz
jkoppolu asked this question in Q&A
Discussion options

You must be logged in to vote

Cheroot can serve any WSGI app. There is an example in the CherryPy docs @ https://docs.cherrypy.dev/en/latest/advanced.html#host-a-foreign-wsgi-application-in-cherrypy. Though, that one does not showcase using just Cheroot.
There are Cheroot + Flask examples on SO: https://stackoverflow.com/a/50949979/595220 / https://stackoverflow.com/a/55367706/595220.
Essentially, you need to import your WSGI app and wire it into the server/routing. The framework wouldn't matter for as long as it implements the WSGI interface. So Django would work just as well.

There's also an executable that is called cheroot that you can use — some examples are at the beginning of https://cheroot.cherrypy.dev/en/lat…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by webknjaz
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