25
loading...
This website collects cookies to deliver better user experience
pip install virtualenv
virtualenv demo_env
demo_env\Scripts\activate
pip install flask
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def home():
return render_template('index.html')
if __name___ == '__main__':
app.run(debug=True)
<!DOCTYPE html>
<html>
<head>
<title>Demo Website</title>
</head>
<body>
<h1>This is the first heading</h1>
</body>
</html>
python app.py