Iterable): value = list(value) # Do correct kind of comparison if name in equals_comparison: if value != default: keywords[name] = value else: if value is not default: keywords[name] = value # Work out path - we shorten it for known Django core fields path = "%s.%s" % (self....
charset)) # Handle non-string types. return str(value).encode(self.charset) # These methods partially implement the file-like object interface. # See https://docs.python.org/library/io.html#io.IOBase # The WSGI server must call this method upon completion of the request. # See http://...
`gobject-introspection-1.0.pc' remote: to the PKG_CONFIG_PATH environment variable remote: No package 'gobject-introspection-1.0' found remote: Command '('pkg-config', '--print-errors', '--exists', 'gobject-introspection-1.0 >= 1.46.0')' returned non-zero exit status 1. remote: ...
Additionally, the variable may be an iterable of template names, in which case the first that can be loaded will be used, as per select_template(). An included template is rendered within the context of the template that includes it. This example produces the output "Hello, John!": Contex...
cached_property from django.utils.ipv6 import clean_ipv6_address from django.utils.itercompat import is_iterable from django.utils.text import capfirst from django.utils.translation import gettext_lazy as _ __all__ = [ 'AutoField', 'BLANK_CHOICE_DASH', 'BigAutoField', 'BigIntegerField', ...
fromdjango.utils.encodingimport(force_bytes,force_text,python_2_unicode_compatible,smart_text,)fromdjango.utils.functionalimportPromise,cached_property,curryfromdjango.utils.ipv6importclean_ipv6_addressfromdjango.utils.itercompatimportis_iterablefromdjango.utils.textimportcapfirstfromdjango.utils.translation...
fromdjango.utils.functionalimportPromise,cached_property,curryfromdjango.utils.ipv6importclean_ipv6_addressfromdjango.utils.itercompatimportis_iterablefromdjango.utils.textimportcapfirstfromdjango.utils.translationimportugettext_lazyas_# Avoid "TypeError: Item in ``from list'' not a string" -- unicode_...
utils.itercompatimportis_iterablefromdjango.utils.textimportcapfirstfromdjango.utils.translationimportgettext_lazyas___all__=['AutoField','BLANK_CHOICE_DASH','BigAutoField','BigIntegerField','BinaryField','BooleanField','CharField','CommaSeparatedIntegerField','DateField','DateTimeField','DecimalField'...
After the field has been cleaned and validated, the UploadedFile object will have an additional image attribute containing the Pillow Image instance used to check if the file was a valid image. Pillow closes the underlying file descriptor after verifying an image, so whilst non-image data attribu...
fromdjango.utils.functionalimportPromise,cached_property,curryfromdjango.utils.ipv6importclean_ipv6_addressfromdjango.utils.itercompatimportis_iterablefromdjango.utils.textimportcapfirstfromdjango.utils.translationimportugettext_lazyas_# Avoid "TypeError: Item in ``from list'' not a string" -- unicode_...