per page, with , order by , clip by
Results of 1 - 10 of about 13 for Stylesheet (0.012 sec.)
フォームアセット (Media クラス) 14481
フォームアセット ( Media クラス) 魅力的で使いやすいウェブのフォームを作るには、HTML だけでは不十分です。CSS スタイルシートも必要です。さらに豪華なウィジェットを使いたければ、JavaScript を各ページに配置する必要もあるでしょう。あるページに必要 ... ます: >>> w = CalendarWidget () >>> print ( w . media ) <link href="https://static.example.com/pretty.css" media="all" rel="stylesheet"> <script src="https://static.example.com/animations.js"></script> <script src="https://static.example.com/actions.js"></s ... レンダリングすると、次のようなHTMLになります: < link href = "https://static.example.com/pretty.css" media = "screen" rel = "stylesheet" > < link href = "https://static.example.com/lo_res.css" media = "tv,projector" rel = "stylesheet" > < link href = "https: ... //static.example.com/newspaper.css" media = "print" rel = "stylesheet" > Stylesheet objects New in Django 6.1. class Stylesheet ( href , ** attributes ) [ソース] Represents a stylesheet link. ...
https://man.mtool.work/django/6.1/topics/forms/media.html
配信 (syndication) フィード フレームワーク 10205
配信 (syndication) フィード フレームワーク Django には、 RSS と Atom フィードを作成するための高レベルな配信 (syndication) フィード生成フレームワークが付属しています。 任意の配信フィードを作成するには、短い Python クラスを書くだけで済みます。 ... ng. """ def ttl ( self ): """ Returns the feed's TTL as a normal Python string. """ ttl = 600 # Hard-coded Time To Live. # STYLESHEETS -- Optional. To set, provide one of the following three. # The framework looks for them in this order. def stylesheets ( ... self , obj ): """ Takes the object returned by get_object() and returns the feed's stylesheets (as URL strings or as Stylesheet instances). """ def stylesheets ( self ): """ Returns the feed's stylesheets (as URL str ... ings or Stylesheet instances). """ # Hardcoded stylesheets. stylesheets = [ "/stylesheet1.xsl" , "stylesheet2.xsl" ] # ITEMS -- One of the fo ...
https://man.mtool.work/django/6.1/ref/contrib/syndication.html
How to use Django's Content Security Policy 8903
How to use Django's Content Security Policy Basic config Content Security Policy (CSP) を有効にするには、Django プロジェクトで次のように設定します: Add the CSP middleware to your MIDDLEWARE setting: MIDDLEWARE = [ # ... "django.middleware.c ... {{ csp_nonce }} " > // This inline JavaScript will be allowed. </ script > For external <script src="..."> and <link rel="stylesheet"> elements, use the csp_nonce_attr template tag: < script src = "/path/to/script.js" {% csp_nonce_attr %} ></ script > < l ... ink rel = "stylesheet" href = "/path/to/style.css" {% csp_nonce_attr %} > To render a Media object's assets with the nonce applied to each eleme ...
https://man.mtool.work/django/6.1/howto/csp.html
Django 5.2.9 リリースノート 8445
Django 5.2.9 リリースノート 2025年12月2日 Django 5.2.9 fixes one security issue with severity "high", one security issue with severity "moderate", and several bugs in 5.2.8. CVE-2025-13372: Potential SQL injection in FilteredRelation column ... s text per element, avoiding excessive resource usage. バグ修正 Fixed a bug in Django 5.2 where django.utils.feedgenerator.Stylesheet.__str__() did not escape the url , mimetype , and media attributes, potentially leading to invalid XML markup ( #36733 ). ...
https://man.mtool.work/django/6.1/releases/5.2.9.html
コンテンツセキュリティポリシー 8357
コンテンツセキュリティポリシー New in Django 6.0. Content Security Policy (CSP) is a web security standard that helps prevent content injection attacks by restricting the sources from which content can be loaded. It plays an important role ... {{ csp_nonce }} " > // This inline JavaScript will be allowed. </ script > For external <script src="..."> and <link rel="stylesheet"> elements, use the csp_nonce_attr template tag: < script src = "/path/to/script.js" {% csp_nonce_attr %} ></ script > < l ... ink rel = "stylesheet" href = "/path/to/style.css" {% csp_nonce_attr %} > To render a Media object's assets with the nonce applied, pass the obj ...
https://man.mtool.work/django/6.1/ref/csp.html
Django ユーティリティ (django.utils) 8357
Django ユーティリティ ( django.utils ) このドキュメントは、 django.utils のすべての安定したモジュールを対象としています。 django.utils 内のほとんどのモジュールは内部使用を目的としていることから、 内部リリース非推奨ポリシー に従い、以下に記載 ... myth of RSS compatibility . get_tag_uri ( url , date ) [ソース] TagURI を作成します。 See How to make a good ID in Atom . Stylesheet class Stylesheet ( url , mimetype = '' , media = 'screen' ) [ソース] RSS スタイルシートを表します。 url [ソース] 必須の引数 ... です。スタイルシートが配置される URL を意味します。 mimetype [ソース] An optional string containing the MIME type of the stylesheet. If not specified, Django will attempt to guess it by using Python's mimetypes.guess_type() . Use mimetype=None if you don ... 't want your stylesheet to have a MIME type specified. media スタイルシートの media 属性として使用される任意の文字列。デフォルトは "screen" です。 ...
https://man.mtool.work/django/6.1/ref/utils.html
Django 6.1 release notes 8129
Django 6.1 release notes August 5, 2026 Welcome to Django 6.1! These release notes cover the new features , as well as some backwards incompatible changes you'll want to be aware of when upgrading from Django 6.0 or earlier. We've begun the ... mail.W001 system check warns when MAILERS is defined but does not include a 'default' entry. フォーム The new asset object Stylesheet is available for adding custom HTML-attributes to stylesheet links in form media. See paths as objects for more details. T ...
https://man.mtool.work/django/6.1/releases/6.1.html
組み込みテンプレートタグとフィルタ 8058
組み込みテンプレートタグとフィルタ このドキュメントでは、 Django の組み込みテンプレートタグとフィルタについて述べます。 また 自動ドキュメンテーション を使えばインストールされている組み込みタグとカスタムタグのドキュメントを読めるのでお勧めで ... a nonce-based Content Security Policy: < script src = "/path/to/script.js" {% csp_nonce_attr %} ></ script > < link rel = "stylesheet" href = "/path/to/style.css" {% csp_nonce_attr %} > When called with a Media object as the argument, renders its assets wi ... atic %} < img src = " {% static 'images/hi.jpg' %} " alt = "Hi!" > 普通のコンテキスト変数を使うこともできます。例えば user_stylesheet 変数をテンプレートに渡す場合は、以下のようにします: {% load static %} < link rel = "stylesheet" href = " {% static user_st ...
https://man.mtool.work/django/6.1/ref/templates/builtins.html
はじめての Django アプリ作成、その 6 7988
はじめての Django アプリ作成、その 6 このチュートリアルは チュートリアル 5 の続きです。Web 投票アプリケーションのテストが完成したので、今度はスタイルシートや画像を追加しましょう。 サーバで生成するHTML以外に、Webアプリケーションは一般的に完全 ... 次に、 polls/templates/polls/index.html の上部に追加します: polls/templates/polls/index.html {% load static %} < link rel = "stylesheet" href = " {% static 'polls/style.css' %} " > {% static %} テンプレートタグは、静的ファイルの完全 URL を生成します。 あなた ...
https://man.mtool.work/django/6.1/intro/tutorial06.html
Django テンプレート言語 7900
Django テンプレート言語 このドキュメントはDjangoテンプレートシステムの文法を説明しています。もしあなたがもっと技術者的な観点でどう動かすかやどう拡張するかを知りたい場合は、 Python プログラマーのための Django テンプレート言語 を参照してくださ ... ができます。 テンプレートの継承について、まず例を見てみましょう: <!DOCTYPE html> < html lang = "en" > < head > < link rel = "stylesheet" href = "style.css" > < title > {% block title %} My amazing site {% endblock %} </ title > </ head > < body > < div id = ... blog_entries の値に応じて、アウトプットは以下のようになります: <!DOCTYPE html> < html lang = "en" > < head > < link rel = "stylesheet" href = "style.css" > < title > My amazing blog </ title > </ head > < body > < div id = "sidebar" > < ul > < li >< a href ...
https://man.mtool.work/django/6.1/ref/templates/language.html
PREV 1 2 NEXT