per page, with , order by , clip by
Results of 1 - 10 of about 87 for format (0.059 sec.)
クラスベースのジェネリックビュー: フラットインデックス 13332
クラスベースのジェネリックビュー: フラットインデックス この索引は、クラスベースビューのリファレンス文書を、異なる観点から編成したものです。ビューごとに、クラスツリーの有効な属性とメソッドが表されます。動作を定義するクラスの観点から編集された ... ender_to_response() ] template_engine template_name [ get_template_names() ] template_name_suffix year [ get_year() ] year_format [ get_year_format() ] メソッド as_view() dispatch() get() get_context_data() get_date_list() get_dated_items() get_dated_q ... _context_object_name() ] date_field [ get_date_field() ] extra_context http_method_names model month [ get_month() ] month_format [ get_month_format() ] ordering [ get_ordering() ] paginate_by [ get_paginate_by() ] paginate_orphans [ get_paginate_orpha ... ender_to_response() ] template_engine template_name [ get_template_names() ] template_name_suffix year [ get_year() ] year_format [ get_year_format() ] メソッド as_view() dispatch() get() get_context_data() get_date_list() get_dated_items() get_dated_q ...
https://man.mtool.work/django/6.1/ref/class-based-views/flattened-index.html
独自のテンプレートタグとフィルタを作る 11195
独自のテンプレートタグとフィルタを作る Django のテンプレート言語は、アプリケーションのプレゼンテーションロジックのニーズに対応するように設計された、多種多様な 埋め込みタグやフィルタ を搭載しています。それでもなお、テンプレート構成要素のコア ... ます: import datetime from django import template register = template . Library () @register . simple_tag def current_time ( format_string ): return datetime . datetime . now () . strftime ( format_string ) simple_tag ヘルパー関数について、注意すべきこと ... にないと確信できるのであれば、 mark_safe() を使う必要があります。小さな HTML コードを作成する場合は、 mark_safe() の代わりに format_html() を使うことを強く推奨します。 テンプレートタグの中からコンテキストにアクセスしたい場合、タグを登録する際に takes_con ... text 引数を使うことでできるようになります。 @register . simple_tag ( takes_context = True ) def current_time ( context , format_string ): timezone = context [ "timezone" ] return your_get_current_time_method ( timezone , format_string ) 最初の引数は ...
https://man.mtool.work/django/6.1/howto/custom-template-tags.html
Django 1.2 リリースノート 10375
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 ... rovide this implementation and it will be used by django.contrib.auth.models.User . See the authentication docs for more information. Permissions for anonymous users If you provide a custom auth backend with supports_anonymous_user set to True , Anonym ... it BigIntegerField type. Improved localization Django's internationalization framework has been expanded with locale-aware formatting and form processing. That means, if enabled, dates and numbers on templates will be displayed using the format specifi ... ed for the current locale. Django will also use localized formats when parsing data in forms. See 表示形式のローカライズ for more details. readonly_fields in ModelAdmin django.contrib.adm ...
https://man.mtool.work/django/6.1/releases/1.2.html
Django 1.7.11 リリースノート 10133
Django 1.7.11 リリースノート November 24, 2015 Django 1.7.11 fixes a security issue and a data loss bug in 1.7.10. Fixed settings leak possibility in date template filter If an application allows users to specify an unvalidated format for d ... ates and passes this format to the date filter, e.g. {{ last_updated|date:user_date_format }} , then a malicious user could obtain any secret in the a ... pplication's settings by specifying a settings key instead of a date format. e.g. "SECRET_KEY" instead of "j/m/Y" . To remedy this, the underlying function used by the date template filter, django.u ... tils.formats.get_format() , now only allows accessing the date/time formatting settings. バグ修正 Fixed a data loss possibility with P ...
https://man.mtool.work/django/6.1/releases/1.7.11.html
設定 9179
設定 警告 設定を上書きするとき、特にデフォルト値が空でないリストや辞書の場合、例えば STATICFILES_FINDERS などは、注意してください。Djangoの使用したい機能に必要なコンポーネントを保持するようにしてください。 コアの設定 ここでは、Django の cor ... example.com" , '"Ng, Mary" <mary@example.com>' ] To safely build an address with a display name from variable content, see Formatting email addresses , which recommends using Address over string formatting, but since this setting requires a list of str ... されるルーターのリスト。 複数データベース構成での自動データベースルーティング に関するドキュメントを参照してください。 DATE_FORMAT デフォルト値: 'N j, Y' (例: Feb. 4, 2003 ) システムのどの部分でも日付フィールドを表示する際に使用するデフォルトのフォーマッ ... れたフォーマットが優先され、代わりに適用されます。 使用可能な日付フォーマット文字列 を参照してください。 関連項目: DATETIME_FORMAT , TIME_FORMAT , SHORT_DATE_FORMAT DATE_INPUT_FORMATS デフォルト値: [ "%Y-%m- %d " , # '2006-10-25' "%m/ %d /%Y" , # '10/25 ...
https://man.mtool.work/django/6.1/ref/settings.html
日付ベースのミックスイン (mixin) 8870
日付ベースのミックスイン (mixin) 注釈 これらのミックスインに含まれるすべての日付フォーマット属性は strftime() フォーマット文字列を使用します。 now テンプレートタグのフォーマット文字列は互換性がないので使用しないでください。 YearMixin class ... [ソース] 日付の「年」コンポーネントのパース情報を取得したり提供したりするために使用できるミックスイン。 メソッドと属性 year_format strftime() のフォーマットで年をパースします。デフォルトでは '%Y' です。 year オプション 年の値を文字列で指定します。デフォ ... ルトでは None に設定されています。これは他の方法で年を決定することを意味します。 get_year_format () [ソース] 年をパースする際に使用する strftime() フォーマットを返します。デフォルトでは year_format を返します。 get_year ... ソース] 日付の「月」コンポーネントのパース情報を取得したり提供したりするために使用できるミックスイン。 メソッドと属性 month_format strftime() フォーマットは月をパースするときに使われます。デフォルトでは '%b' です。 month オプション 月を表す文字列。デフォ ...
https://man.mtool.work/django/6.1/ref/class-based-views/mixins-date-based.html
Django 1.8.7 リリースノート 8870
Django 1.8.7 リリースノート November 24, 2015 Django 1.8.7 fixes a security issue and several bugs in 1.8.6. Additionally, Django's vendored version of six, django.utils.six , has been upgraded to the latest release (1.10.0). Fixed settings ... leak possibility in date template filter If an application allows users to specify an unvalidated format for dates and passes this format to the date filter, e.g. {{ last_updated|date:user_date_format }} , then a malicious user ... could obtain any secret in the application's settings by specifying a settings key instead of a date format. e.g. "SECRET_KEY" instead of "j/m/Y" . To remedy this, the underlying function used by the date template filter, django.u ... tils.formats.get_format() , now only allows accessing the date/time formatting settings. バグ修正 Fixed a crash of the debug view duri ...
https://man.mtool.work/django/6.1/releases/1.8.7.html
Django ユーティリティ (django.utils) 8682
Django ユーティリティ ( django.utils ) このドキュメントは、 django.utils のすべての安定したモジュールを対象としています。 django.utils 内のほとんどのモジュールは内部使用を目的としていることから、 内部リリース非推奨ポリシー に従い、以下に記載 ... text ) [ソース] Similar to escape() , except that it doesn't operate on pre-escaped strings, so it will not double escape. format_html ( format_string , * args , ** kwargs ) [ソース] これは str.format() に似ていますが、HTML フラグメントを組み立てるのに ... 適しています。最初の引数 format_string はエスケープされませんが、その他の引数とキーワード引数はすべて conditional_escape() を通してから str.format() に渡さ ... れます。最終的に、出力には mark_safe() が適用されます。 小さなHTML断片を構築する場合、この関数は文字列補間の % や str.format() を直接利用するよりも望まれます。なぜなら、この関数はテンプレートシステムと同様に、全ての引数にエスケープ処理を適用するか ...
https://man.mtool.work/django/6.1/ref/utils.html
Django 1.11.19 リリースノート 8682
Django 1.11.19 リリースノート February 11, 2019 Django 1.11.19 fixes a security issue in 1.11.18. CVE-2019-6975: Memory exhaustion in django.utils.numberformat.format() If django.utils.numberformat.format() -- used by contrib.admin as well ... as the floatformat , filesizeformat , and intcomma templates filters -- received a Decimal with a large number of digits or a large exponent, ... it could lead to significant memory usage due to a call to '{:f}'.format() . To avoid this, decimals with more than 200 digits are now formatted using scientific notation. ...
https://man.mtool.work/django/6.1/releases/1.11.19.html
Django 2.0.11 リリースノート 8682
Django 2.0.11 リリースノート February 11, 2019 Django 2.0.11 fixes a security issue in 2.0.10. CVE-2019-6975: Memory exhaustion in django.utils.numberformat.format() If django.utils.numberformat.format() -- used by contrib.admin as well as ... the floatformat , filesizeformat , and intcomma templates filters -- received a Decimal with a large number of digits or a large exponent, ... it could lead to significant memory usage due to a call to '{:f}'.format() . To avoid this, decimals with more than 200 digits are now formatted using scientific notation. ...
https://man.mtool.work/django/6.1/releases/2.0.11.html
PREV 1 2 3 4 5 6 7 8 9 NEXT