示例#1
0
文件: core.py 项目: amadev/rater
def forbidden(request):
    """Shows a forbidden page."""
    return Response(render_template('core/forbidden.html'),
                    status=401, mimetype='text/html')
示例#2
0
文件: core.py 项目: amadev/rater
def bad_request(request):
    """Shows a "bad request" page."""
    return Response(render_template('core/bad_request.html'),
                    status=400, mimetype='text/html')
示例#3
0
文件: core.py 项目: amadev/rater
def about(request):
    """Just shows a simple about page that explains the system."""
    return render_template('core/about.html')
示例#4
0
文件: core.py 项目: amadev/rater
def not_found(request):
    """Shows a not found page."""
    return Response(render_template('core/not_found.html'), status=404,
                    mimetype='text/html')
示例#5
0
文件: core.py 项目: amadev/rater
def home(request):
    """Shows the home page."""
    return render_template('core/home.html')