In this section, we will talk about the basics of developing web applications using Flask and Flask-RESTful.
As we discussed earlier, Flask is simple and straightforward. There are no complex rules or steps for developing web applications in Flask.
Perform the following steps to create your first web application using Flask:
FlaskWebApp.pyand add the following code:
from flask import Flask webapp = Flask(__name__) @webapp.route("/") def hello(): return " Hello World!" if __name__ == '__main__': webapp.run(host='0.0.0.0',port=8999,debug=True)
py FlaskWebApp.py. You ...