-
Hi Everyone, Could not find any normie |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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's also an executable that is called |
Beta Was this translation helpful? Give feedback.
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…