HabitTracker/app.py

18 lines
362 B
Python

from flask import Flask, render_template
from db.migrate import _CREATE_MIGRATIONS_TABLE
# Create a new Flask instance
app = Flask(__name__)
# Create a new route
@app.route('/')
def index():
# return 'Hello World'
return render_template('index.html', title='Home')
# Run the application
if __name__ == '__main__':
app.run(port=5000, debug=True)