mirror of
https://codeberg.org/diginaut/digimarks.git
synced 2026-05-06 18:04:10 +02:00
Custom 404 page
This commit is contained in:
@@ -172,6 +172,11 @@ def get_tags_for_user(userkey):
|
|||||||
return clean_tags(tags)
|
return clean_tags(tags)
|
||||||
|
|
||||||
|
|
||||||
|
@app.errorhandler(404)
|
||||||
|
def page_not_found(e):
|
||||||
|
return render_template('404.html'), 404
|
||||||
|
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
def index():
|
def index():
|
||||||
""" Homepage, point visitors to project page """
|
""" Homepage, point visitors to project page """
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{% extends "base.html" %}
|
||||||
|
{% block title %}404: Page not found{% endblock %}
|
||||||
|
{% block pageheader %}404: Page not found{% endblock %}
|
||||||
|
{% block pagecontent %}
|
||||||
|
The page you requested was not found.
|
||||||
|
{% endblock %}
|
||||||
Reference in New Issue
Block a user