diff --git a/advlabdb/__init__.py b/advlabdb/__init__.py index 17ade04..a06b21c 100644 --- a/advlabdb/__init__.py +++ b/advlabdb/__init__.py @@ -5,8 +5,13 @@ from flask_security.models import fsqla_v2 as fsqla from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) + app.debug = True # DEBUG +app.config["SECURITY_EMAIL_VALIDATOR_ARGS"] = { + "check_deliverability": False +} # Don't check email deliverability # DEBUG + app.config["SERVER_NAME"] = "127.0.0.1:5000" # DEBUG app.config["SECRET_KEY"] = "dev" diff --git a/advlabdb/modelViews.py b/advlabdb/modelViews.py index cfbe271..309fc5b 100644 --- a/advlabdb/modelViews.py +++ b/advlabdb/modelViews.py @@ -412,3 +412,5 @@ with app.app_context(): category="Active semester", ) ) + + admin.add_link(MenuLink(name="Logout", url=url_for("security.logout")))