Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Calcul scientifique
avec Python
Voir le programme détaillé
Classe « Blueprint »

Méthode flask.Blueprint.register

Signature de la méthode register

def register(self, app: 'App', options: 'dict[str, t.Any]') -> 'None' 

Description

help(Blueprint.register)

Called by :meth:`Flask.register_blueprint` to register all
views and callbacks registered on the blueprint with the
application. Creates a :class:`.BlueprintSetupState` and calls
each :meth:`record` callback with it.

:param app: The application this blueprint is being registered
    with.
:param options: Keyword arguments forwarded from
    :meth:`~Flask.register_blueprint`.

.. versionchanged:: 2.3
    Nested blueprints now correctly apply subdomains.

.. versionchanged:: 2.1
    Registering the same blueprint with the same name multiple
    times is an error.

.. versionchanged:: 2.0.1
    Nested blueprints are registered with their dotted name.
    This allows different blueprints with the same name to be
    nested at different locations.

.. versionchanged:: 2.0.1
    The ``name`` option can be used to change the (pre-dotted)
    name the blueprint is registered with. This allows the same
    blueprint to be registered multiple times with unique names
    for ``url_for``.


Vous êtes un professionnel et vous avez besoin d'une formation ? Coder avec une
Intelligence Artificielle
Voir le programme détaillé