moved panzer into separate file, added 404 error handler, removed profile html page

This commit is contained in:
Xevion
2019-12-21 02:27:25 -06:00
parent 90ebaee9e7
commit 03b3220e3c
5 changed files with 43 additions and 113 deletions

View File

@@ -1,5 +1,5 @@
from app import app
from flask import send_from_directory, redirect, url_for
from flask import send_from_directory, redirect, url_for, render_template
import mistune
import os
@@ -19,4 +19,9 @@ def favicon():
@app.errorhandler(401)
def unauthorized(e):
return redirect(url_for('login'))
return redirect(url_for('login'))
@app.errorhandler(404)
def page_not_found(e):
# note that we set the 404 status explicitly
return render_template('404.html'), 404