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 « Flask »

Méthode flask.Flask.create_url_adapter

Signature de la méthode create_url_adapter

def create_url_adapter(self, request: 'Request | None') -> 'MapAdapter | None' 

Description

help(Flask.create_url_adapter)

Creates a URL adapter for the given request. The URL adapter
is created at a point where the request context is not yet set
up so the request is passed explicitly.

.. versionchanged:: 3.1
    If :data:`SERVER_NAME` is set, it does not restrict requests to
    only that domain, for both ``subdomain_matching`` and
    ``host_matching``.

.. versionchanged:: 1.0
    :data:`SERVER_NAME` no longer implicitly enables subdomain
    matching. Use :attr:`subdomain_matching` instead.

.. versionchanged:: 0.9
   This can be called outside a request when the URL adapter is created
   for an application context.

.. versionadded:: 0.6


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