__init__.py 546 B

1234567891011121314151617
  1. """This module hosts the views. This file registers blueprints and hosts some helpful functions"""
  2. from flexmeasures.ui import flexmeasures_ui
  3. # Now views can register
  4. from flexmeasures.ui.views.dashboard import dashboard_view # noqa: F401
  5. from flexmeasures.ui.views.users.logged_in_user import ( # noqa: F401 # noqa: F401
  6. logged_in_user_view,
  7. )
  8. @flexmeasures_ui.route("/docs")
  9. def docs_view():
  10. """Render the Sphinx documentation"""
  11. # Todo: render the docs with this nicer url and include the app's navigation menu
  12. return