python WSGI server
from flask import Flask
app = Flask(__name__)
@app.route("/")
def index():
return "<h1>Hello!</h1>"
if __name__ == "__main__":
from waitress import serve
serve(app, host="0.0.0.0", port=8080)
python WSGI server
from flask import Flask
app = Flask(__name__)
@app.route("/")
def index():
return "<h1>Hello!</h1>"
if __name__ == "__main__":
from waitress import serve
serve(app, host="0.0.0.0", port=8080)
python wsgi
--- Disclaimer ---
Some of these like Gunicorn, Nginx, uWSGI won't work on windows.
The only WSGI server that I know that work on windows is waitress.
List of WSGI servers you could use:
- Gunicorn
- Waitress (I recommend this for windows users)
- uWSGI
- Nginx
- Django (It's built in with WSGI)
- Apache
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us