예제 #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())