Skip to content
Myr

Another doc improvement

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent d78b04a · Browse files · 1 file+5 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−1 removed

  • other:+5 added−1 removed

1 file+5 added−1 removed

modified:docs/quickstart.rst+5 added-1 removed
532 unmodified lines
533 from flask import render_template534535 @app.errorhandler(404)536 def page_not_found(error):537 return render_template('page_not_found.html')537 return render_template('page_not_found.html'), 404538539Note the ``404`` after the :func:`~flask.render_template` call. This540tells Flask that the status code of that page should be 404 which means541not found. By default 200 is assumed which translats to: all went well.542543.. _sessions:544545Sessions546--------
54 unmodified lines