Note to self: Actually use the functions you create

This commit is contained in:
Dominik V. Salonen 2015-12-24 21:47:09 +01:00
parent be2409fc68
commit 02f0919920
1 changed files with 1 additions and 1 deletions

2
run.py
View File

@ -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'])