def page_not_found(e): return render_template('errors/404.html', context=get_context()), 404
def server_error(e): return render_template('errors/500.html', context=get_context()), 500
def main(): if app.config['BASE_DOMAIN'] != request.headers['Host']: return redirect('http://' + app.config['BASE_DOMAIN'], code=302) #return render_template('index_production.html', context=get_context()) return render_template('index.html', context=get_context())