diff --git a/pyproger/errors/routes.py b/pyproger/errors/routes.py index 72cc9d0..60a7305 100755 --- a/pyproger/errors/routes.py +++ b/pyproger/errors/routes.py @@ -1,4 +1,4 @@ -from flask import render_template, url_for +from flask import current_app, render_template from . import bp @@ -8,8 +8,12 @@ def handle_404(err): return ( render_template( "errors/404.html", - title="pyproger - Страница не найдена", - menu_title="pyproger", + title=f'{current_app.config.get("BRAND")} - поиск по тэгу', + headers=current_app.config.get("SITE_HEADERS"), + menu_title=current_app.config.get("BRAND"), + menu_items=current_app.config.get("MENU_ITEMS"), + mylinks=current_app.config.get("MYLINKS"), + copyright=current_app.config.get("MYCOPYRIGHT"), ), 404, )