Note to self: Actually use the functions you create
This commit is contained in:
parent
be2409fc68
commit
02f0919920
2
run.py
2
run.py
|
@ -123,7 +123,7 @@ def faq():
|
||||||
# Custom 404
|
# Custom 404
|
||||||
@app.errorhandler(404)
|
@app.errorhandler(404)
|
||||||
def page_not_found(e):
|
def page_not_found(e):
|
||||||
return render_template('error.html', page=config["SITE_DATA"], error="We couldn't find that. Are you sure you know what you're looking for?"), 404
|
return error_page("We couldn't find that. Are you sure you know what you're looking for?"), 404
|
||||||
|
|
||||||
|
|
||||||
@app.route('/<filename>', methods=['GET'])
|
@app.route('/<filename>', methods=['GET'])
|
||||||
|
|
Loading…
Reference in New Issue