Merge pull request #683 from Quentin-M/whoops-404

Add 404 page
This commit is contained in:
Quentin Machu 2015-10-30 14:30:20 -04:00
commit 3f35265858
6 changed files with 136 additions and 101 deletions

View file

@ -58,6 +58,10 @@ def index(path, **kwargs):
def internal_error_display():
return render_page_template('500.html')
@web.errorhandler(404)
@web.route('/404', methods=['GET'])
def not_found_error_display(e = None):
return render_page_template('404.html')
@web.route('/organization/<path:path>', methods=['GET'])
@no_cache