Commit b144b2cc authored by Lukas Böhm's avatar Lukas Böhm
Browse files

general error view

parent 3f765105
import uuid
import os
from datetime import datetime, timedelta
from werkzeug.exceptions import HTTPException
from werkzeug.utils import secure_filename
from app import app, db
from flask import redirect, url_for, render_template, send_from_directory, current_app, abort
......@@ -68,6 +69,11 @@ def index():
return redirect(url_for('upload'))
def http_error(e):
return render_template('Error.html', e=e)
def expired(e=None):
{% extends 'BasePage.html' %}
{% block content %}
<div class="pricing-header px-3 py-3 pt-md-5 pb-md-4 mx-auto text-center">
<h1 class="display-4">Fehler {{ e.code }} - {{ }}</h1>
<p class="lead">Es tut uns leid, aber es ist etwas schief gelaufen.</p>
<small class="d-block mb-3 text-muted">{{ e.description }}</small>
{% endblock content %}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment