startup.rst 971 B

12345678910111213141516171819202122232425262728
  1. .. _startup_hooks:
  2. .. currentmodule:: flaskbb.plugins.spec
  3. Application Startup Hooks
  4. =========================
  5. Application startup hooks are called when the application is created,
  6. either through a WSGI server (uWSGI or gunicorn for example) or by
  7. the ``flaskbb`` command.
  8. Unless noted, all FlaskBB hooks are called after the relevant builtin
  9. FlaskBB setup has run (e.g. ``flaskbb_load_blueprints`` is called after
  10. all standard FlaskBB blueprints have been loaded).
  11. The hooks below are listed in the order they are called.
  12. .. autofunction:: flaskbb_extensions
  13. .. autofunction:: flaskbb_load_blueprints
  14. .. autofunction:: flaskbb_jinja_directives
  15. .. autofunction:: flaskbb_request_processors
  16. .. autofunction:: flaskbb_errorhandlers
  17. .. autofunction:: flaskbb_load_migrations
  18. .. autofunction:: flaskbb_load_translations
  19. .. autofunction:: flaskbb_load_post_markdown_class
  20. .. autofunction:: flaskbb_load_nonpost_markdown_class
  21. .. autofunction:: flaskbb_additional_setup