- Framework that provides me with libraries to build lightweight web apps
pip install flask-
host: specify the host you want to run your Flask app on (default: 127.0.0.1 i.e. Localhost)
-
port: specify the port number where you wish to run your Flask app on (default: 5000)
-
debug: boolean value telling Flask whether you want debugging information to be provided to you(default: false)
-
options: information which you want to be forwarded to the server
from flask import Flask
app = Flask(__name__)
@app.route("/home")
def home():
return("This is the home page on my WS")
@app.route("/about")
def about():
return("This is the about page on my WS")
@app.route("/services")
def services():
return("This is the services page on my WS")
@app.route("/contact")
def about():
return("This is the contact us page on my WS")
if(__name__=="__main__"):
app.run(debug=True)