Add the accounts page placeholder
This proves out that my navigation works the way that I want and that my auto context variables are working. Currently we don't do much but say they have no accounts, but we can build that up over time
This commit is contained in:
parent
e1f39bb852
commit
0aecabea75
3 changed files with 17 additions and 0 deletions
8
vanth/pages/accounts.py
Normal file
8
vanth/pages/accounts.py
Normal file
|
|
@ -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)
|
||||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue