... ls import reverse from policebeat.models import NewsItem class LatestEntriesFeed ( Feed ): title = "Police beat site news" link = "/sitenews/" description = "Updates on changes and additions to police beat central." def items ( self ): return NewsIte ... def item_title ( self , item ): return item . title def item_description ( self , item ): return item . description # item_link is only needed if NewsItem has no get_absolute_url method. def item_link ( self , item ): return reverse ( "news-item" , a ... ed/" , LatestEntriesFeed ()), # ... ] 備考: Feedクラスは django.contrib.syndication.views.Feed のサブクラスです。 title 、 link 、および description は、それぞれ標準RSSの <title> , <link> , <description> 要素に対応します。 items() は、フィードに含める ... ... rWidget インスタンスのアセットリストは、このプロパティから取得できます: >>> w = CalendarWidget () >>> print ( w . media ) <link href="https://static.example.com/pretty.css" media="all" rel="stylesheet"> <script src="https://static.example.com/animati ... ector" : [ "lo_res.css" ], "print" : [ "newspaper.css" ], } 上記のCSS定義をレンダリングすると、次のような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. ... ... ish chain (Benoit 1895 B) british_chain_sears_truncated British chain (Sears 1922 truncated) gold_coast_ft Gold Coast foot link Link link_benoit Link (Benoit) link_sears Link (Sears) clarke_link Clarke's link fathom Fathom rod Rod furlong Furlong, Fu ... ... alue stored in the database, or a value provided as a URL query parameter payload, could result in an clickable JavaScript link. AdminURLFieldWidget now validates the provided value using URLValidator before displaying the clickable link. You may cus ... ... alue stored in the database, or a value provided as a URL query parameter payload, could result in an clickable JavaScript link. AdminURLFieldWidget now validates the provided value using URLValidator before displaying the clickable link. You may cus ... ... alue stored in the database, or a value provided as a URL query parameter payload, could result in an clickable JavaScript link. AdminURLFieldWidget now validates the provided value using URLValidator before displaying the clickable link. You may cus ... ... 2026-15920: Potential cross-site scripting via URLField values in the admin The admin renders URLField values as clickable links on changelist views and read-only fields. The link was generated without validating the value as a safe URL, so a stored ... value using a potentially dangerous scheme was rendered as a link. URLField values shown via display_for_field are now validated using URLValidator before a link is rendered, and displayed ... ... 2026-15920: Potential cross-site scripting via URLField values in the admin The admin renders URLField values as clickable links on changelist views and read-only fields. The link was generated without validating the value as a safe URL, so a stored ... value using a potentially dangerous scheme was rendered as a link. URLField values shown via display_for_field are now validated using URLValidator before a link is rendered, and displayed ... ... :... URLs to be entered. If a developer relied on is_safe_url() to provide safe redirect targets and put such a URL into a link, they could suffer from a XSS attack. This bug doesn't affect Django currently, since we only put this URL into the Locati ... ulnerability in django.contrib.admin If a URLField is used in Django 1.5, it displays the current value of the field and a link to the target on the admin change page. The display routine of this widget was flawed and allowed for XSS. バグ修正 Fixed ... ... nonce = " {{ 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 > < link rel = "stylesheet" href = "/path/to/style.css" {% csp_nonce_attr %} > To render a Media object's assets with the nonce app ... 2026年10月08日