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