diff --git a/app.py b/app.py index aa12c35..de29c5f 100644 --- a/app.py +++ b/app.py @@ -115,5 +115,12 @@ def signup(): def all_users(): return render_template('all_users.html') +@app.errorhandler(404) +def page_not_found(e): + return render_template('404.html'), 404 + +@app.route('/resetpassword') +def resetpassword(): + return render_template('resetpassword.html') if __name__ == '__main__': app.run(debug=True) diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..3755915 --- /dev/null +++ b/templates/404.html @@ -0,0 +1,6 @@ +{% extends 'base.html' %} +{% block content %} +
The page you are looking for does not exist.
+Return to home page by click the home button on the top left of this page
+{% endblock %} \ No newline at end of file diff --git a/templates/about.html b/templates/about.html index ab3db9c..71385fe 100644 --- a/templates/about.html +++ b/templates/about.html @@ -1,14 +1,4 @@ {% extends 'base.html' %} - {% block content %} - - - -Don't have an account? Create one
+Don't have an account? Create one
+Forgot password? Reset Password
{% endblock %} \ No newline at end of file