actually added ports
This commit is contained in:
@ -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
4
src/templates/404.html
Normal 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 %}
|
Reference in New Issue
Block a user