parent
1520d68c80
commit
c1fa22d9b0
2 changed files with 27 additions and 12 deletions
|
@ -58,11 +58,12 @@ def index(path, **kwargs):
|
|||
def internal_error_display():
|
||||
return render_page_template('500.html')
|
||||
|
||||
#TODO: reenable once fixed
|
||||
#@web.errorhandler(404)
|
||||
#@web.route('/404', methods=['GET'])
|
||||
#def not_found_error_display(e = None):
|
||||
# return render_page_template('404.html')
|
||||
@web.errorhandler(404)
|
||||
@web.route('/404', methods=['GET'])
|
||||
def not_found_error_display(e = None):
|
||||
resp = render_page_template('404.html')
|
||||
resp.status_code = 404
|
||||
return resp
|
||||
|
||||
@web.route('/organization/<path:path>', methods=['GET'])
|
||||
@no_cache
|
||||
|
|
Reference in a new issue