from flask import Flask
app = Flask(__name__)
@app.route('/')
@app.route('/index')
@app.route('/home')
def index():
return "<h1>Hello from Flask!</h1>"
templates/includes/footer.html
<div class="container-fluid text-center bottom-container">
<footer>
<p>Copyright ©2019-2020. Universal Tech Academy. All rights reserved.</p>
</footer>
</div>
templates/index.html
{% include "includes/footer.html" %}
href="{{ url_for('index') }}"
index is function name in routes.py
@app.route('/')
@app.route('/index')
@app.route('/home')
def index():
return render_template('index.html', login=False)
Top comments (0)