... cript performance and minimizing overall admin media file size. JavaScript tests Django's JavaScript tests can be run in a browser or from the command line. The tests are located in a top level js_tests directory. テストを書く Django's JavaScript tests ... on for information on the types of assertions supported by QUnit . テストの実行 The JavaScript tests may be run from a web browser or from the command line. Testing from a web browser To run the tests from a web browser, open up js_tests/tests.html in y ... our browser. To measure code coverage when running the tests, you need to view that file over HTTP. To view code coverage: ルートディレ ... ... n In a cross-site scripting attack, malicious code in the form of a client-side script is injected into another user's web browser, where it will be executed. This is typically done by: storing the malicious script in the database where it will be retri ... eved and presented to other users in their browsers, or getting users to click a link which will cause the attacker's JavaScript to be executed by the user's browser. Cross- ... acks by automatically escaping characters that represent a risk (that is, HTML characters that could be interpreted by the browser to malicious effect are instead safely displayed ). However, the extent of this protection and its limitations should be u ... ... for non-intrusive testing. Each policy is composed of one or more directives and their values, which together instruct the browser on how to handle specific types of content. When the ContentSecurityPolicyMiddleware is enabled, Django automatically buil ... nges in behavior, or potential tampering in production environments. Policy violation reports When a CSP violation occurs, browsers typically log details to the developer console, providing immediate feedback during development. To also receive these re ... ango supports configuring these directives via the SECURE_CSP_REPORT_ONLY settings, but reports will only be issued by the browser if the policy explicitly includes a valid reporting directive. Django does not provide built-in functionality to receive, ... ... session cookie. This is used if you want to ensure that the previous session data can't be accessed again from the user's browser (for example, the django.contrib.auth.logout() function calls it). is_empty () Returns True if the session does not have a ... 等しいです。 この関数は、 get_expiry_age() と同じキーワード引数を取ることができ、使用の際の注意点も同じです。 get_expire_at_browser_close () aget_expire_at_browser_close () 非同期バージョン : aget_expire_at_browser_close() ユーザのセッションクッキーがユー ... ドが 500 の時には、セッションは保存されません。 ブラウザ起動中のみ有効なセッション vs. 永続的なセッション SESSION_EXPIRE_AT_BROWSER_CLOSE 設定を使うと、セッションフレームワークが、ブラウザ起動中のみ有効なセッションと永続的なセッションのどちらを使うか設定 ... ... on for AJAX requests, on the following basis: Many AJAX toolkits add an X-Requested-With header when using XMLHttpRequest. Browsers have strict same-origin policies regarding XMLHttpRequest. In the context of a browser, the only way that a custom header ... ilar exemption. Recently, engineers at Google made members of the Ruby on Rails development team aware of a combination of browser plugins and redirects which can allow an attacker to provide custom HTTP headers on a request to any website. This can all ... ... rebuilds sphinx-autobuild can be used to automatically rebuild the documentation and reload the documentation page in the browser whenever a file changes. To enable auto-reloading: Install the package: / $ python -m pip install sphinx-autobuild ... ... cs directory, run one of the following commands: On Linux and macOS: $ SPHINXBUILD = sphinx-autobuild SPHINXOPTS = "--open-browser --delay 0" make html On Windows (Command Prompt): ...\> set SPHINXBUILD = sphinx-autobuild ...\> set SPHINXOPTS = --open-b ... delay 0 ...\> make html On Windows (PowerShell): PS > $env:SPHINXBUILD = "sphinx-autobuild" PS > $env:SPHINXOPTS = "--open-browser --delay 0" PS > make html Alternatively, sphinx-autobuild can be invoked directly: / $ sphinx-autobuild . _build/html ... ... put focus. The focus order is inconsistent with the logical order that's communicated visually. The Accessibility Insights browser extension's automated checks feature, or an equivalent tool with the Axe checker. Where the UI changes could affect those ... active element) is too small. Hover-based interaction that does not translate to touch, such as a hover-only tooltip. 400% browser zoom. Common issues include: Content is cut off or disappears when zoomed. Content that does not inherently require a two- ... ... on for AJAX requests, on the following basis: Many AJAX toolkits add an X-Requested-With header when using XMLHttpRequest. Browsers have strict same-origin policies regarding XMLHttpRequest. In the context of a browser, the only way that a custom header ... ilar exemption. Recently, engineers at Google made members of the Ruby on Rails development team aware of a combination of browser plugins and redirects which can allow an attacker to provide custom HTTP headers on a request to any website. This can all ... ... ersions. And for those who don't like the new layout, you can use custom project and app templates instead! Support for in-browser testing frameworks (like Selenium ). ... and a whole lot more; see below ! Wherever possible we try to introduce new featu ... ature in an existing project, read the migration guide . If you encounter problems, there's a helpful FAQ . Support for in-browser testing frameworks Django 1.4 supports integration with in-browser testing frameworks like Selenium . The new django.test. ... in and other bundled templates to use the HTML5 doctype. While Django will be careful to maintain compatibility with older browsers, this change means that you can use any HTML5 features you need in admin pages without having to lose HTML validity or ov ... ... なく、少なくとも1つをチェックすることを要求するためです。 Override this method in custom widgets that aren't compatible with browser validation. For example, a WYSIWYG text editor widget backed by a hidden textarea element may want to always return False ... to avoid browser validation on the hidden field. MultiWidget class MultiWidget ( widgets , attrs = None ) [ソース] 複数のウィジェットで構成 ... %W 、そして %j 形式は、このウィジェットではサポートされていません。 Using the HTML5 "date" input type If you are targeting browsers that support the HTML5 "date" input type , you can override the input_type attribute to enable the browser's native date ... 2026年10月08日