forked from Icycoide/searxng
add custom 404 page
This commit is contained in:
parent
104cdb7d03
commit
0056c4035e
6 changed files with 38 additions and 0 deletions
|
@ -715,6 +715,11 @@ def config():
|
|||
'default_theme': settings['ui']['default_theme']})
|
||||
|
||||
|
||||
@app.errorhandler(404)
|
||||
def page_not_found(e):
|
||||
return render('404.html')
|
||||
|
||||
|
||||
def run():
|
||||
app.run(
|
||||
debug=settings['general']['debug'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue