@blueprint.before_app_first_request<EOL>def preload_pages():
try:<EOL><INDENT>_add_url_rule([page.url for page in Page.query.all()])<EOL><DEDENT>except Exception:  <EOL><INDENT>current_app.logger.warn('<STR_LIT>')<EOL>raise<EOL><DEDENT>
Register all pages before the first application request.