per page, with , order by , clip by
Results of 1 - 10 of about 45 for dict (0.006 sec.)
リクエストとレスポンスのオブジェクト 13214
リクエストとレスポンスのオブジェクト 簡単な概要 Django は、システムを通じてステータスを渡すために、リクエストとレスポンスのオブジェクトを使います。 あるページがリクエストされたとき、Django はリクエストに関するメタデータを含んだ HttpRequest ... ィクショナリです。 HttpRequest. GET 渡された HTTP GET パラメータを含む、ディクショナリライクのオブジェクトです。後述の QueryDict のドキュメントを参照してください。 HttpRequest. POST リクエストにフォームデータが含まれている場合に、すべての与えられた HT ... TP POST パラメータを含む辞書のようなオブジェクト。以下の QueryDict ドキュメントを参照してください。リクエストにポストされた生のデータや非フォームデータにアクセスする必要がある場合は、代わり ... tp.multipartparser import MultiPartParser class CustomMultiPartParser ( MultiPartParser ): def parse ( self ): post = QueryDict ( mutable = True ) files = MultiValueDict () # Custom processing logic here return post , files # In middleware or view: r ...
https://man.mtool.work/django/6.1/ref/request-response.html
TemplateResponse および SimpleTemplateResponse 12372
TemplateResponse および SimpleTemplateResponse 標準の HttpResponse オブジェクトは静的な構造体です。構築時にあらかじめレンダリングされたコンテンツのブロックが提供され、そのコンテンツは変更可能ですが、簡単に変更できる形ではありません。 しかし ... to/bar.html'] SimpleTemplateResponse. context_data テンプレートをレンダリングするときに使用するコンテキストデータ。 これは dict でなければなりません。 例: {'foo': 123} SimpleTemplateResponse. rendered_content [ソース] 現在のテンプレートとコンテキスト ... d by get_template() ), the name of a template, or a list of template names. context テンプレートコンテキストに追加する値の dict 。デフォルトでは空の辞書です。 content_type HTTP の Content-Type ヘッダに含まれる値で、MIME タイプ指定と文字セットエンコー ... テンプレートを読み込むために使用するテンプレートエンジンの NAME を指定します。 headers レスポンスに追加するHTTPヘッダーの dict 。 SimpleTemplateResponse. resolve_context ( context ) [ソース] テンプレートのレンダリングに使用されるコンテキストデータを ...
https://man.mtool.work/django/6.1/ref/template-response.html
Django 1.7 リリースノート 10458
Django 1.7 リリースノート September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した ... the class of this field, including the class name. args : Positional arguments, as a list kwargs : Keyword arguments, as a dict These four values allow any field to be serialized into a file, as well as allowing the field to be copied safely, both es ... ード変更時にセッションを無効化する for more details. django.contrib.formtools Calls to WizardView.done() now include a form_dict to allow easier access to forms by their step name. django.contrib.gis The default OpenLayers library version included in ... will now follow the SESSION_COOKIE_SECURE and SESSION_COOKIE_HTTPONLY settings. The messages context processor now adds a dictionary of default levels under the name DEFAULT_MESSAGE_LEVELS . Message オブジェクトには、メッセージレベルの文字列表現を含 ...
https://man.mtool.work/django/6.1/releases/1.7.html
テンプレート 10044
テンプレート Django はウェブフレームワークなので、HTML を動的に生成する便利な手段が必要でした。最も一般的なアプローチは、テンプレートに頼ることです。テンプレートには、出力したい HTML を書いた静的な部分と、動的なコンテンツを挿入する方法を書い ... last name is Doe. 辞書ルックアップ、属性ルックアップ、リストインデックスルックアップはドット記法で実装されています: {{ my_dict.key }} {{ my_object.attribute }} {{ my_list.0 }} 変数が呼び出し可能オブジェクトに解決される場合、テンプレート・システムは引 ... 保存し、テンプレートコンテキストプロセッサを実行します。 共通 API には等価な概念がありません。コンテキストデータはプレーンな dict で渡され、現在の HttpRequest は必要に応じて別途渡されます。 ローダー テンプレートローダーが責任を持つのは、テンプレートの検 ... をサポートしています。 コンテキストプロセッサ コンテキストプロセッサは、現在の HttpRequest を引数としておけとり、データの dict をレンダリングコンテキストに追加して返します。 主な用途は、すべてのビューでコードを繰り返すことなく、すべてのテンプレートで ...
https://man.mtool.work/django/6.1/topics/templates.html
Django 5.2.17 release notes 9615
Django 5.2.17 release notes August 4, 2026 Django 5.2.17 fixes one security issue with severity "high", two security issues with severity "moderate", and one security issue with severity "low" in 5.2.16. CVE-2026-15307: Server-side file-wri ... te and request forgery via spatial lookups Spatial lookups allowed str and dict lookup values to be passed to GDALRaster when they represented rasters. Depending on the raster driver, this could write a ... permission on any registered model containing a spatial field. The following types are now disallowed by spatial lookups: dict A str that is not a valid GEOSGeometry , e.g. a serialized dictionary This is a backward incompatible change. As a reminde ...
https://man.mtool.work/django/6.1/releases/5.2.17.html
Django 6.0.8 release notes 9615
Django 6.0.8 release notes August 4, 2026 Django 6.0.8 fixes one security issue with severity "high", two security issues with severity "moderate", one security issue with severity "low", and several bugs in 6.0.7. CVE-2026-15307: Server-si ... de file-write and request forgery via spatial lookups Spatial lookups allowed str and dict lookup values to be passed to GDALRaster when they represented rasters. Depending on the raster driver, this could write a ... permission on any registered model containing a spatial field. The following types are now disallowed by spatial lookups: dict A str that is not a valid GEOSGeometry , e.g. a serialized dictionary This is a backward incompatible change. As a reminde ...
https://man.mtool.work/django/6.1/releases/6.0.8.html
Django 1.2 リリースノート 8988
Django 1.2 リリースノート 2010 年 5 月 17 日 Django 1.2 へようこそ! Nearly a year in the making, Django 1.2 packs an impressive list of new features and lots of bug fixes. These release notes cover the new features, as well as important cha ... nces in a fixture, improving readability and resolving problems referring to objects whose primary key value may not be predictable or known. Fast failure for tests Both the test subcommand of django-admin.py and the runtests.py script used to run Dj ... ersions earlier than 2.6, add the following code to the class: __members__ = property ( lambda self : self . __dir__ ()) __dict__ on model instances Historically, the __dict__ attribute of a model instance has only contained attributes corresponding ... iple database configurations, Django 1.2 has added a _state attribute to object instances. This attribute will appear in __dict__ for a model instance. If your code relies on iterating over __dict__ to obtain a list of fields, you must now be prepare ...
https://man.mtool.work/django/6.1/releases/1.2.html
サイトマップ・フレームワーク 8773
サイトマップ・フレームワーク Djangoには、 sitemap XML ファイルを作成するための高レベルなサイトマップ生成フレームワークが付属しています。 概要 サイトマップとは、検索エンジンのインデクサーに、ページの変更頻度や、あるページがサイト内の他のペー ... ショートカット サイトマップフレームワークは、一般的なケースに対する便利なクラスを提供します。 class GenericSitemap ( info_dict , priority = None , changefreq = None , protocol = None ) [ソース] The django.contrib.sitemaps.GenericSitemap class allows ... you to create a sitemap by passing it a dictionary which has to contain at least a queryset entry. This queryset will be used to generate the items of the sitemap. It ... cSitemap from django.contrib.sitemaps.views import sitemap from django.urls import path from blog.models import Entry info_dict = { "queryset" : Entry . objects . all (), "date_field" : "pub_date" , } urlpatterns = [ # some generic view using info_di ...
https://man.mtool.work/django/6.1/ref/contrib/sitemaps.html
Python プログラマーのための Django テンプレート言語 8773
Python プログラマーのための Django テンプレート言語 この文書は Django テンプレートシステムがどのように動作し、どのように拡張するか、技術的な観点から説明します。構文に関するリファレンスを探しているなら、 Django テンプレート言語 を参照してくだ ... のリストです。これらの呼び出し可能オブジェクトはリクエストオブジェクトを引数として取り、コンテキストにマージされるアイテムの dict を返します。 デフォルトは空のリストです。 詳しくは RequestContext を参照してください。 debug はテンプレートのデバッグモード ... ストをレンダリングできます。同じテンプレートを再利用して、異なるコンテキストで何度でもレンダリングできます。 class Context ( dict_ = None , autoescape = True , use_l10n = None , use_tz = None ) [ソース] django.template.Context のコンストラクタは、オプシ ... d level' >>> c [ "foo" ] 'first level' push() に渡されたすべての引数は、新しいコンテキストレベルを構築するために使用される dict コンストラクタに渡されます。 >>> c = Context () >>> c [ "foo" ] = "first level" >>> with c . push ( foo = "second level" ) ...
https://man.mtool.work/django/6.1/ref/templates/api.html
組み込みテンプレートタグとフィルタ 8559
組み込みテンプレートタグとフィルタ このドキュメントでは、 Django の組み込みテンプレートタグとフィルタについて述べます。 また 自動ドキュメンテーション を使えばインストールされている組み込みタグとカスタムタグのドキュメントを読めるのでお勧めで ... エンコードされた形式のクエリ文字列を出力します。 This tag accepts positional arguments, which must be mappings (such as QueryDict or dict ). If no positional arguments are provided, request.GET is used as the default to construct the query string. Posi ... sult could prevent the page from reloading as expected. request.GET をデフォルトとして使う request.GET をデフォルトの QueryDict インスタンスとして使用するには、 django.template.context_processors.request コンテキストプロセッサを有効にする必要がありま ... す。これが有効でない場合、テンプレートコンテキストに request オブジェクトを明示的に渡すか、またはこのタグに QueryDict インスタンスを渡す必要があります。 Changed in Django 6.0: A ? was prepended to the query string for empty results. 基本的な ...
https://man.mtool.work/django/6.1/ref/templates/builtins.html
PREV 1 2 3 4 5 NEXT