27 lines
478 B
Python
27 lines
478 B
Python
from flask import Flask, render_template
|
|
|
|
'''
|
|
Red underlines? Install the required packages first:
|
|
Open the Terminal in PyCharm (bottom left).
|
|
|
|
On Windows type:
|
|
python -m pip install -r requirements.txt
|
|
|
|
On MacOS type:
|
|
pip3 install -r requirements.txt
|
|
|
|
This will install the packages from requirements.txt for this project.
|
|
'''
|
|
|
|
|
|
app = Flask(__name__)
|
|
|
|
|
|
@app.route("/")
|
|
def home():
|
|
return render_template('index.html')
|
|
|
|
|
|
if __name__ == '__main__':
|
|
app.run(debug=True)
|