The Django Field subclass you write provides the machinery for converting between your Python instances and the database/serializer values in various ways (there are differences between storing a value and using a value for lookups, for example).
La sous-classe Field Django que vous écrivez fournit les mécanismes de conversion entre vos instances Python et les valeurs de base de données ou de sérialisation de diverses manières (il existe par exemple des différences entre le stockage d'une valeur et son utilisation dans une requête).
A floating-point number represented in Python by a float instance.
Un nombre flottant représenté en Python par une instance de float.
A date, represented in Python by a instance.
Référez-vous Une date, représentée en Python par une instance de.
It has the methods that are common to all instances of Python classes.
C'est elle qui porte les méthodes communes à toutes les instances de classes en Python.
A date and time, represented in Python by a datetime.datetime instance.
Une date et une heure, représentées en Python par une instance de datetime.datetime.
A fixed-precision decimal number, represented in Python by a Decimal instance.
Un nombre décimal de taille fixe, représenté en Python par une instance de Decimal.
By Python convention, the instance reference is called self but may be called this or any other variable name.
Par convention Python, la référence de l'instance est appelée self mais peut être appelée this ou tout autre nom de variable.
In Python, this instance is most important value to instantiate services to work with the office APIs.
En Python, cette instance est la valeur la plus importante pour instancier les services et travailler avec les API du bureau.
Therefore, I create a tool using Python that converts instances in Unity 3D to Unity Prefabs.
C'est pourquoi j'ai dû créé un outil en utilisant Python de manière à convertir toutes ces instances en Unity Prefabs et ce, directement dans Unity 3D.
It must be called explicitly in other cases, for instance in plain Python scripts.
Elle doit être appelée explicitement dans d'autres cas, comme par exemple dans les scripts Python ordinaires.
Note that the content argument should be an instance of django.core.files.File, not Python's built-in file object.
Notez que le paramètre content doit être une instance de django.core.files.File, et non pas de l'objet file de Python.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.