actually added ports

This commit is contained in:
2024-12-08 00:10:54 +01:00
parent 8bf5186ed6
commit 061c923ff4
4 changed files with 13 additions and 1 deletions

View File

@ -139,6 +139,12 @@ def create_user():
except sqlite3.IntegrityError:
return 'User already exists.'
# 404
@app.errorhandler(404)
def page_not_found(e):
return render_template('404.html'), 404
if __name__ == '__main__':
init_db()
app.run(debug=True)
app.run(debug=False)

4
src/templates/404.html Normal file
View File

@ -0,0 +1,4 @@
{% extends 'base.html' %} {% block title %}404{% endblock %} {% block content %}
<h1 class="bad-wrong">404</h1>
<p>Page not found</p>
{% endblock %}