diff --git a/__pycache__/begin.cpython-312.pyc b/__pycache__/begin.cpython-312.pyc index 195e063..ecc4f9e 100644 Binary files a/__pycache__/begin.cpython-312.pyc and b/__pycache__/begin.cpython-312.pyc differ diff --git a/begin.py b/begin.py index a6bbf7c..4c908bf 100644 --- a/begin.py +++ b/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) \ No newline at end of file + 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') \ No newline at end of file diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..28f953c --- /dev/null +++ b/templates/404.html @@ -0,0 +1,92 @@ + + +
+ + +It looks like the page you are trying to reach doesn't exist.
+But don't worry, you can go back to the homepage by clicking the button below.
+ Go Home +Something went wrong on our end. We're working on fixing it!
+Please try again later, or reload the page.
+ Reload Page +