示例#1
0
文件: urls.py 项目: jongha/thunderfs
def page_not_found(e):
    return render_template('errors/404.html', context=get_context()), 404
示例#2
0
文件: urls.py 项目: jongha/thunderfs
def server_error(e):
    return render_template('errors/500.html', context=get_context()), 500
示例#3
0
文件: index.py 项目: jongha/thunderfs
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())