How I resolve warning message to import Flask from flask

86 Views Asked by At

Command From flask not result (could not be resoulved) I install the waitress server, but from waitress presents the same error.

error presents in vscode IDE

I make a flask test with this simple code

from flask import Flask
from waitress import serve

app = Flask(__name__)

@app.route('/route_name')
def home():
    return "Hello flask!"

I resolved flask import but now i have an error at connection localhost?\n

Error:

WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.

I add route name in broken link and Tcharan, it worked!

0

There are 0 best solutions below