error handeling

This commit is contained in:
2024-10-10 10:30:02 +02:00
parent 65a0b3cbab
commit ee8922e728
4 changed files with 194 additions and 1 deletions

View File

@ -23,4 +23,12 @@ def user(name):
liste = [1,2,3,4,5]
return render_template('user.html', name=name,
stuff=stuff,
liste=liste)
liste=liste)
@app.errorhandler(404)
def page_not_found(e):
return render_template('404.html')
@app.errorhandler(500)
def page_not_found(e):
return render_template('500.html')