error handeling
This commit is contained in:
10
begin.py
10
begin.py
@ -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')
|
Reference in New Issue
Block a user