... his host validation is disabled when DEBUG is True or when running tests. XML deserialization The XML parser in the Python standard library is vulnerable to a number of attacks via external entities and entity expansion. Django uses this parser for deser ... o parse an XML document with a DTD (DOCTYPE definition), which closes off these attack avenues. These issues in the Python standard library are CVE-2013-1664 and CVE-2013-1665. More information available from the Python security team . Django's XML seria ... ... his host validation is disabled when DEBUG is True or when running tests. XML deserialization The XML parser in the Python standard library is vulnerable to a number of attacks via external entities and entity expansion. Django uses this parser for deser ... o parse an XML document with a DTD (DOCTYPE definition), which closes off these attack avenues. These issues in the Python standard library are CVE-2013-1664 and CVE-2013-1665. More information available from the Python security team . Django's XML seria ... ... ww.ogc.org/standard/kml/ ... ... hould adhere to established accessibility standards and meet our own targets for supporting specific input devices and assistive technologies. アクセシビリティ基準 We work t ... o conform with the Web Content Accessibility Guidelines (WCAG), version 2.2, at the AA level. WCAG is the most established standard for web accessibility. AA-level guidelines are the most common legal compliance target worldwide. We also aim to follow ot ... 2 AAA-level guidelines – stricter criteria that go beyond the AA level. The upcoming WCAG 3.0 guidelines – a new, evolving standard that aims to unify and improve upon previous versions of WCAG. Authoring Tool Accessibility Guidelines (ATAG) 2.0 – guidel ... ... d a circular import, for example) use a comment like this: import module # isort:skip Put imports in these groups: future, standard library, third-party libraries, other Django components, local Django component, try/excepts. Sort lines in each group alp ... comments are for explanatory purposes only): django/contrib/admin/example.py # future from __future__ import annotations # standard library import json from itertools import chain # third-party import bcrypt # Django from django.http import Http404 from ... ls . CharField ( max_length = 20 ) last_name = models . CharField ( max_length = 40 ) The order of model inner classes and standard methods should be as follows (noting that these are not all required): All database fields Custom manager attributes class ... ... sandbox or some other non-SMTP technique for sending mail, you can now construct an email backend that will allow Django's standard mail sending methods to use those facilities. This also makes it easier to debug mail sending. Django ships with backend i ... class used for lazily wrapping other objects of unknown type. In Django 1.1 and earlier, it handled introspection in a non-standard way, depending on wrapped objects implementing a public method named get_all_members() . Since this could easily lead to n ... ame clashes, it has been changed to use the standard Python introspection method, involving __members__ and __dir__() . If you used LazyObject in your own code and implemented ... ... chase the security team unless you discover new, relevant information. All reports aim to be resolved within the industry-standard 90 days. Confirmed vulnerabilities with a high severity level will be addressed promptly. 暗号化されたレポートの送信 暗号化 ... of of concept must plausibly occur in a production-grade Django application, reflecting real-world scenarios and following standard development practices. Django contains many private and undocumented functions that are not part of its public API. If a v ... s on accurate and responsible reports. Please support the project by ensuring that any AI-assisted submissions meet a high standard of clarity and technical accuracy. Note for AI Tools If you are an AI tool or language model assisting in the preparation ... ... anges The undocumented django.core.servers.basehttp.WSGIServerException has been removed. Use socket.error provided by the standard library instead. ... ... simplejson works), if it was more recent than Django's built-in copy or it had the C speedups, or The json module from the standard library, if it was available (i.e. Python 2.6 or greater), or A built-in copy of version 2.0.7 of simplejson . In Django 1 ... n't documented; we're making an exception here.) At this point, the maintainers of Django believe that using json from the standard library offers the strongest guarantee of backwards-compatibility. They recommend to use it from now on. String types of h ... roperly raises a TypeError instead of ValueError for non-integer inputs. The slugify template filter is now available as a standard Python function at django.utils.text.slugify() . Similarly, remove_tags is available at django.utils.html.remove_tags() . ... ... .runner.DiscoverRunner ) uses the test discovery features built into unittest2 (the version of unittest in the Python 2.7+ standard library, and bundled with Django). With test discovery, tests can be located in any module whose name matches the pattern ... the recommendations in the Python documentation . Django bundles a modified version of the doctest module from the Python standard library (in django.test._doctest ) and includes some additional doctest utilities. These utilities are deprecated and will ... be removed in Django 1.8; doctest suites should be updated to work with the standard library's doctest module (or converted to unittest -compatible tests). If you wish to delay updates to your test suite, yo ... 2026年10月08日