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
|
||||
|
||||
|
@ -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,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue