diff --git a/templates/accounts.html b/templates/accounts.html new file mode 100644 index 0000000..5f2cf66 --- /dev/null +++ b/templates/accounts.html @@ -0,0 +1,7 @@ +{% extends 'layout.html' %} +{% block main_content %} +
You don't have any accounts yet. Let's create some
+{% endif %} +{% endblock %} diff --git a/vanth/pages/accounts.py b/vanth/pages/accounts.py new file mode 100644 index 0000000..1571d25 --- /dev/null +++ b/vanth/pages/accounts.py @@ -0,0 +1,8 @@ +import flask + +blueprint = flask.Blueprint('accounts', __name__) + +@blueprint.route('/accounts/') +def accounts(): + my_accounts = [] + return flask.render_template('accounts.html', accounts=my_accounts) diff --git a/vanth/server.py b/vanth/server.py index 004bb9f..f97204d 100644 --- a/vanth/server.py +++ b/vanth/server.py @@ -5,6 +5,7 @@ import flask_login import flask_uuid import vanth.auth +import vanth.pages.accounts import vanth.pages.index LOGGER = logging.getLogger(__name__) @@ -29,6 +30,7 @@ def create_app(config): SESSION_COOKIE_DOMAIN = config.session_cookie_domain, ) + app.register_blueprint(vanth.pages.accounts.blueprint) app.register_blueprint(vanth.pages.index.blueprint) app.register_blueprint(vanth.auth.blueprint)