... キーがわかりやすく紹介されています。 シンプルなジェネリックビュー View class View 属性 (とオプションのアクセサ): http_method_names メソッド as_view() dispatch() head() http_method_not_allowed() setup() TemplateView class TemplateView 属性 (とオプションの ... アクセサ): content_type extra_context http_method_names response_class [ render_to_response() ] template_engine template_name [ get_template_names() ] メソッド as_view() dispatch ... thod_not_allowed() render_to_response() setup() RedirectView class RedirectView 属性 (とオプションのアクセサ): http_method_names pattern_name permanent query_string url [ get_redirect_url() ] メソッド as_view() delete() dispatch() get() head() http_me ... ... u should double-check that the following changes don't impact you, and upgrade your code if they do. Changes to constraint names Django 1.1 modifies the method used to generate database constraint names so that names are consistent regardless of machi ... necessary). Introduce your modified version of SetRemoteAddrFromForwardedFor as a piece of middleware in your own project. Names of uploaded files are available later In Django 1.0, files uploaded and stored in a model's FileField were saved to disk b ... t in speed and reduction in bandwidth. URL の名前空間 Django 1.1 improves named URL patterns with the introduction of URL "namespaces." In short, this feature allows the same group of URLs, from the same application, to be included in a Django URLConf ... ... には、他の Python クラスと同様にインスタンス化してください: class Model ( ** kwargs ) [ソース] The keyword arguments are the names of the fields you've defined on your model. Note that instantiating a model in no way touches your database; for that, you ... keep the original value until it is reloaded . モデルの読み込みをカスタマイズする classmethod Model. from_db ( db , field_names , values , * , fetch_mode = None ) [ソース] from_db() メソッドを使うと、データベースから読み込むときのモデルインスタンス作 ... 成をカスタマイズできます。 The db argument contains the database alias for the database the model is loaded from, field_names contains the names of all loaded fields, and values contains the loaded values for each field in field_names . The field_n ... ... change makes it easier to scan a stacktrace for issues in application code. Tablespace support in PostgreSQL. Customizable names for simple_tag() . In the documentation, a helpful security overview page. The django.contrib.auth.models.check_password f ... erating SELECT queries containing DISTINCT ON . The distinct() QuerySet method now accepts an optional list of model field names. If specified, then the DISTINCT statement is limited to these fields. This is only supported in PostgreSQL. For more deta ... tomize the admin, then you'll need to replace them with your own icons or get the files from a previous release. CSS class names in admin forms To avoid conflicts with other common CSS class names (e.g. "button"), we added a prefix ("field-") to all C ... ... the "mysql" backend, and will not be made available for "mysql_old". データベース名の制約変更 The format of the constraint names Django generates for foreign key references have changed slightly. These names are generally only used when it is not poss ... wo methods available: Redirect the output of manage.py to a file, and edit the generated SQL to use the correct constraint names before executing it. Examine the output of manage.py sqlall to see the new-style constraint names, and use that as a guide ... ... n comments, e.g. "Loop over" rather than "We loop over". Use underscores, not camelCase, for variable, function and method names (i.e. poll.get_unique_voters() , not poll.getUniqueVoters() ). Use InitialCaps for class names (or for factory functions t ... lled request . Do this: def my_view ( request , foo ): ... Don't do this: def my_view ( req , foo ): ... Model style Field names should be all lowercase, using underscores instead of camelCase. Do this: class Person ( models . Model ): first_name = mo ... highlight them in diff outputs. Please don't put your name in the code you contribute. Our policy is to keep contributors' names in the AUTHORS file distributed with Django -- not scattered throughout the codebase itself. Feel free to include a change ... ... ckend-dependent template object (such as those returned by get_template() ), the name of a template, or a list of template names. 例: ['foo.html', 'path/to/bar.html'] SimpleTemplateResponse. context_data テンプレートをレンダリングするときに使用するコン ... ckend-dependent template object (such as those returned by get_template() ), the name of a template, or a list of template names. context テンプレートコンテキストに追加する値の dict 。デフォルトでは空の辞書です。 content_type HTTP の Content-Type ヘッ ... ckend-dependent template object (such as those returned by get_template() ), the name of a template, or a list of template names. レンダリングするバックエンド依存のテンプレートオブジェクトインスタンスを返します。 テンプレートの読み込みをカスタマイズす ... ... ... ith suitably crafted file names. Built-in upload handlers were not affected by this vulnerability. ... ... d files with suitably crafted file names. In order to mitigate this risk, stricter basename and path sanitation is now applied. ... 2026年10月08日