:py:mod:`geonature.app` ======================= .. py:module:: geonature.app .. autoapi-nested-parse:: Démarrage de l'application Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: geonature.app.MyJSONProvider Functions ~~~~~~~~~ .. autoapisummary:: geonature.app.configure_alembic geonature.app.create_app .. py:function:: configure_alembic(alembic_config) This function add to the 'version_locations' parameter of the alembic config the 'migrations' entry point value of the 'gn_module' group for all modules having such entry point. Thus, alembic will find migrations of all installed geonature modules. .. py:class:: MyJSONProvider(app: flask.sansio.app.App) Bases: :py:obj:`flask.json.provider.DefaultJSONProvider` Provide JSON operations using Python's built-in :mod:`json` library. Serializes the following additional data types: - :class:`datetime.datetime` and :class:`datetime.date` are serialized to :rfc:`822` strings. This is the same as the HTTP date format. - :class:`uuid.UUID` is serialized to a string. - :class:`dataclasses.dataclass` is passed to :func:`dataclasses.asdict`. - :class:`~markupsafe.Markup` (or any object with a ``__html__`` method) will call the ``__html__`` method to get a string. .. py:method:: default(o) :staticmethod: .. py:function:: create_app(with_external_mods=True)