per page, with , order by , clip by
Results of 1 - 10 of about 16 for fragment (0.008 sec.)
django.urls ユーティリティ関数 12857
django.urls ユーティリティ関数 reverse() reverse() 関数は指定したビューと任意のパラメータに対して、 url タグと同様に、絶対パス参照を返すために使用します。 reverse ( viewname , urlconf = None , args = None , kwargs = None , current_app = Non ... e , * , query = None , fragment = None ) [ソース] viewname には URL パターン名 またはURLconf で使用される呼び出し可能なビューオブジェクトを指定できます。た ... ) と互換性のある任意の値を受け付けます。エンコードされたクエリ文字列は先頭に ? を付加して、解決された URL に追加されます。 fragment キーワード引数は、返される URL に付加するフラグメント識別子を指定します(つまり、パスとクエリ文字列の後ろに、先頭に # を付 ... れます)。 例: >>> from django.urls import reverse >>> reverse ( "admin:index" , query = { "q" : "biscuits" , "page" : 2 }, fragment = "results" ) '/admin/?q=biscuits&page=2#results' >>> reverse ( "admin:index" , query = [( "color" , "blue" ), ( "color" , ...
https://man.mtool.work/django/6.1/ref/urlresolvers.html
Django のキャッシュフレームワーク 12563
Django のキャッシュフレームワーク 動的なウェブサイトの基本的なトレードオフは、ええと、それが動的であるということです。ユーザーがページをリクエストするたびに、ウェブサーバーはあらゆる種類の計算を行い (データベースのクエリから、テンプレートの ... load cache %} {% cache 500 sidebar %} .. sidebar .. {% endcache %} Sometimes you might want to cache multiple copies of a fragment depending on some dynamic data that appears inside the fragment. For example, you might want a separate cached copy of the ... nts, which may be variables with or without filters, to the {% cache %} template tag that will uniquely identify the cache fragment when those values are converted to strings: {% load cache %} {% cache 500 sidebar request.user.username %} .. sidebar for ... e argument values are converted to strings when creating the cache key, consider uniqueness carefully to avoid serving one fragment for two distinct values that share a string representation, such as None and "None" . Avoid supplying a model instance, si ...
https://man.mtool.work/django/6.1/topics/cache.html
Django テンプレート言語 9911
Django テンプレート言語 このドキュメントはDjangoテンプレートシステムの文法を説明しています。もしあなたがもっと技術者的な観点でどう動かすかやどう拡張するかを知りたい場合は、 Python プログラマーのための Django テンプレート言語 を参照してくださ ... レートの親が判断できなくなってしまうのです。 Template partials New in Django 6.0. Template partials define reusable template fragments within a template file. They are self-contained components that can be rendered multiple times within the same template, ... ed in the {% endpartialdef %} closing tag: {% partialdef user-info %} {# ... #} {% endpartialdef user-info %} The template fragment can be rendered using the partial tag: {% partial user-info %} Fragment reuse A template fragment can be reused multiple t ... ial content is rendered each time the named partial is used, with the current template context. Inline partials A template fragment can be defined and rendered in-place using the inline argument. This defines the partial for later reuse while also render ...
https://man.mtool.work/django/6.1/ref/templates/language.html
Django 1.10 リリースノート 9028
Django 1.10 リリースノート 2016年8月1日 Django 1.10 へようこそ! このリリースノートでは、 バージョン 1.10 の新機能 と、Django 1.9 以前からアップグレードする際に注意が必要な 後方互換性が失われた変更点 について説明します。私たちは、非推奨の期間 ... ue with STATIC_ROOT . The new approach encodes the URL, which could be backwards-incompatible in cases such as including a fragment in a path, e.g. {% static 'img.svg#fragment' %} , since the # is encoded as %23 . To adapt, move the fragment outside the ... template tag: {% static 'img.svg' %}#fragment . When USE_L10N is True , localization is now applied for the date and time filters when no format string is specified. Th ...
https://man.mtool.work/django/6.1/releases/1.10.html
テンプレート 8733
テンプレート Django はウェブフレームワークなので、HTML を動的に生成する便利な手段が必要でした。最も一般的なアプローチは、テンプレートに頼ることです。テンプレートには、出力したい HTML を書いた静的な部分と、動的なコンテンツを挿入する方法を書い ... い場合は、 using 引数にそのエンジンの NAME を渡します。 Partial loading: When using the DjangoTemplates backend, a specific fragment from a template can be loaded by name. This fragment should have been previously defined using the partialdef template tag ... mplate.loader import get_template # Load an entire template. template = get_template ( "template.html" ) # Load a specific fragment from a template. partial = get_template ( "template.html#partial_name" ) When loading a partial, the returned object behav ... late but contains only the partial's content. See Template partials for more information about defining and using template fragments. Changed in Django 6.0: Support for loading template partials when using the DjangoTemplates backend was added. select_te ...
https://man.mtool.work/django/6.1/topics/templates.html
全文検索 8439
全文検索 django.contrib.postgres.search モジュールのデータベース関数は PostgreSQL の 全文検索エンジン を利用しやすくしています。 このドキュメントの例では、 クエリを作成する で定義されたモデルを使用します。 参考 検索の概要については、 トピッ ... start_sel = None , stop_sel = None , max_words = None , min_words = None , short_word = None , highlight_all = None , max_fragments = None , fragment_delimiter = None ) [ソース] 単一のテキストフィールドまたは式、クエリ、設定、およびオプションのセットを受 ... rd パラメータを無視します。PostgreSQLではデフォルトで無効になっています。 表示するフラグメントの最大数を設定するには、 max_fragments に0以外の整数値を指定してください。PostgreSQLではデフォルトで無効になっています。 fragment_delimiter 文字列パラメータを設 ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/search.html
組み込みテンプレートタグとフィルタ 8439
組み込みテンプレートタグとフィルタ このドキュメントでは、 Django の組み込みテンプレートタグとフィルタについて述べます。 また 自動ドキュメンテーション を使えばインストールされている組み込みタグとカスタムタグのドキュメントを読めるのでお勧めで ... %} {% blocktranslate %} Copyright {{ current_year }}{% endblocktranslate %} partial New in Django 6.0. Renders a template fragment that was defined with partialdef , inserting the matching partial at this location. 使い方: {% partial partial_name %} The ... partial_name argument is the name of the template fragment to render. In the following example, a partial named button is defined and then rendered three times: {% partialdef button ... } {% partial button %} {% partial button %} {% partial button %} partialdef New in Django 6.0. Defines a reusable template fragment that can be rendered multiple times within the same template or accessed directly via template loading or inclusion . 使い ...
https://man.mtool.work/django/6.1/ref/templates/builtins.html
Django 6.1 release notes 8439
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 ... alue of the transitional setting SIGNED_COOKIE_LEGACY_SALT_FALLBACK is now False . In cases where cached pages or template fragments varied on arguments, e.g. vary headers for cache_page() and UpdateCacheMiddleware , or the vary_on arguments to the cache ... template tag (generated by make_template_fragment_key() ), the cache keys are different from the keys generated by older versions of Django. After upgrading to Django 6.1, ... the first request to any previously cached page or template fragment that varies on additional information will be a cache miss. GenericForeignKey now uses a separate descriptor class: the pr ...
https://man.mtool.work/django/6.1/releases/6.1.html
Django 3.1 リリースノート 8144
Django 3.1 リリースノート August 4, 2020 Django 3.1 へようこそ! このリリースノートでは、 バージョン 3.1 の新機能 と、Django 3.0 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... ( User ) admin . site . register ( User , MyUserAdmin ) その他 The cache keys used by cache and generated by make_template_fragment_key() are different from the keys generated by older versions of Django. After upgrading to Django 3.1, the first request ... to any previously cached template fragment will be a cache miss. The logic behind the decision to return a redirection fallback or a 204 HTTP response from the set_l ...
https://man.mtool.work/django/6.1/releases/3.1.html
Django 3.2 リリースノート 8144
Django 3.2 リリースノート April 6, 2021 Django 3.2 へようこそ! このリリースノートでは、 バージョン 3.2 の新機能 と、Django 3.1 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... other cases are improved. See シンタックスカラーリング for more details. マイグレーション The new Operation.migration_name_fragment property allows providing a filename fragment that will be used to name a migration containing only that operation. Migrat ...
https://man.mtool.work/django/6.1/releases/3.2.html
PREV 1 2 NEXT