fix 404
parent
199eb0f3ae
commit
6103b1fd22
|
@ -1,4 +1,4 @@
|
||||||
from flask import render_template, url_for
|
from flask import current_app, render_template
|
||||||
|
|
||||||
from . import bp
|
from . import bp
|
||||||
|
|
||||||
|
@ -8,8 +8,12 @@ def handle_404(err):
|
||||||
return (
|
return (
|
||||||
render_template(
|
render_template(
|
||||||
"errors/404.html",
|
"errors/404.html",
|
||||||
title="pyproger - Страница не найдена",
|
title=f'{current_app.config.get("BRAND")} - поиск по тэгу',
|
||||||
menu_title="pyproger",
|
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,
|
404,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue