コード例 #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())