예제 #1
0
파일: errors.py 프로젝트: TextX/TextX
def error_internal(e):

    form = LoginForm()

    if form.validate_on_submit():
        process_login(form)

    return render_template('500.html', form=form), 500
예제 #2
0
def error_internal(e):

    form = LoginForm()

    if form.validate_on_submit():
        process_login(form)

    return render_template('500.html', form=form), 500
예제 #3
0
파일: errors.py 프로젝트: TextX/TextX
def page_not_found(e):

    form = LoginForm()

    if form.validate_on_submit():
        process_login(form)

    flash('The page requested could not be found. Here\'s a haiku instead.', 'info')
    return render_template('404.html', form=form), 404
예제 #4
0
def page_not_found(e):

    form = LoginForm()

    if form.validate_on_submit():
        process_login(form)

    flash('The page requested could not be found. Here\'s a haiku instead.',
          'info')
    return render_template('404.html', form=form), 404