.. _f-staticsite: module ``apps.staticapp.staticsite`` ==================================== .. inheritance-diagram:: mathenjeu.apps.staticapp.staticsite Short summary +++++++++++++ module ``mathenjeu.apps.staticapp.staticsite`` Starts an application. :githublink:`%|py|6` Classes +++++++ +--------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | class | truncated documentation | +====================================================================+=======================================================================================================================================================================================+ | :class:`StaticApp ` | Implements routes for a web application which serves static files protected with a password. See :ref:`Which server to server starlette application? `. ... | +--------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Methods +++++++ +---------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------+ | method | truncated documentation | +=============================================================================================+============================================================================================+ | :py:meth:`__init__ ` | | +---------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------+ | :meth:`cleanup ` | Cleans up. | +---------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------+ | :meth:`event ` | This route does not return anything interesting except a blank page, but it logs | +---------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------+ | :meth:`main ` | Defines the main page. | +---------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------+ | :meth:`not_found ` | Returns an :epkg:`HTTP 404` page. | +---------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------+ | :meth:`on_error ` | An example error. | +---------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------+ | :meth:`page_context ` | Returns the page context before applying any template. | +---------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------+ | :meth:`server_error ` | Returns an :epkg:`HTTP 500` page. | +---------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------+ | :meth:`startup ` | Startups. | +---------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------+ | :meth:`unlogged_response ` | Returns an answer for somebody looking to access the questions without being authentified. | +---------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: mathenjeu.apps.staticapp.staticsite :members: :special-members: __init__ :show-inheritance: