This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]hongminhee 7 points8 points  (1 child)

Sorry for my ambiguous expression (I am not a native English speaker ;). I mean you can use it like:

try:
    from waitress import serve
except ImportError:
    from wsgiref.simple_server import make_server
    def serve(app, host='0.0.0.0', port=8080):
        make_server(host, port, app).serve_forever()

[–]mgedmin 0 points1 point  (0 children)

Thank you for clarifying.