URL
<a href={{ url_for('listener_mehthod_name')}}>
Template
- In the template define the sections as
- {% block name_section %}{% endblock %}
- Extend the template
- {% extends "page.html"%}
- Define the section
- {% block name_section %}
- CODE HTML
- {% endblock %}
Errors
@app.errorhandler(404)
def page_not_found(e):
return render_template('404.html')
@app.errorhandler(500)
def page_not_found(e):
return render_template('404.html')
Comentarios
Publicar un comentario