per page, with , order by , clip by
Results of 1 - 7 of about 7 for templatetags (0.005 sec.)
独自のテンプレートタグとフィルタを作る 12559
独自のテンプレートタグとフィルタを作る Django のテンプレート言語は、アプリケーションのプレゼンテーションロジックのニーズに対応するように設計された、多種多様な 埋め込みタグやフィルタ を搭載しています。それでもなお、テンプレート構成要素のコア ... は、自動的にテンプレート内に読み込むことが可能になります。 アプリケーションは、"models.py" や "views.py" などと同じレベルに "templatetags" ディレクトリを含むべきです。まだ存在していない場合は、ディレクトリが Python パッケージとして扱われるようにするため、"__in ... it__.py" を忘れないでください。 開発用サーバが自動的にリスタートしない場合 templatetags モジュールを追加した後、テンプレートでタグやフィルタを使用する前に、サーバーを再起動する必要があります。 カスタムタグやフィ ... ルタは templatetags ディレクトリ内のモジュールにあります。モジュールファイルの名前は、あとでタグをロードして使うので、別のアプリでカスタムタグ ...
https://man.mtool.work/django/6.1/howto/custom-template-tags.html
Django 2.1 リリースノート 10905
Django 2.1 リリースノート 2018年8月1日 Django 2.1 へようこそ! このリリースノートでは、 バージョン 2.1 の新機能 と、Django 2.0 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能を ... nd {% load admin_static %} are deprecated in favor of {% load static %} , which works the same. django.contrib.staticfiles.templatetags.static() is deprecated in favor of django.templatetags.static.static() . Support for InlineModelAdmin.has_add_permission() ...
https://man.mtool.work/django/6.1/releases/2.1.html
テンプレート 9233
テンプレート Django はウェブフレームワークなので、HTML を動的に生成する便利な手段が必要でした。最も一般的なアプローチは、テンプレートに頼ることです。テンプレートには、出力したい HTML を書いた静的な部分と、動的なコンテンツを挿入する方法を書い ... 用できます。たとえば: OPTIONS = { "libraries" : { "myapp_tags" : "path.to.myapp.tags" , "admin.urls" : "django.contrib.admin.templatetags.admin_urls" , }, } {% load %} タグに対応する辞書のキーを渡すことでライブラリをロードできます。 'builtins' : ビルトイン に追 ... configure them into the environment. たとえば、下記のような内容の myproject/jinja2.py を作成することができ、: from django.templatetags.static import static from django.urls import reverse from jinja2 import Environment def environment ( ** options ): env = ...
https://man.mtool.work/django/6.1/topics/templates.html
Django 3.0 リリースノート 8124
Django 3.0 リリースノート 2019年12月2日 Django 3.0 へようこそ! このリリースノートでは、 バージョン 3.0 の新機能 と、Django 2.2 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... .cookie_date() is removed. The staticfiles and admin_static template tag libraries are removed. django.contrib.staticfiles.templatetags.staticfiles.static() is removed. ...
https://man.mtool.work/django/6.1/releases/3.0.html
Django の機能廃止のタイムライン 7579
Django の機能廃止のタイムライン このドキュメントは、 非推奨化ポリシー に従って、Django の様々なパーツが互換性を伴わない方法で変更または削除されるタイミングについて概説しています。各項目についての詳細は、多くの場合 2 つ前のバージョンのリリー ... ate() will be removed. The staticfiles and admin_static template tag libraries will be removed. django.contrib.staticfiles.templatetags.static() will be removed. The shim to allow InlineModelAdmin.has_add_permission() to be defined without an obj argument wi ... lling a SQLCompiler directly as an alias for calling its quote_name_unless_alias method will be removed. cycle and firstof template tags will be removed from the future template tag library (used during the 1.6/1.7 deprecation period). django.conf.urls.patte ... go.utils.module_loading.import_by_path will be removed in favor of django.utils.module_loading.import_string . ssi and url template tags will be removed from the future template tag library (used during the 1.3/1.4 deprecation period). django.utils.text.java ...
https://man.mtool.work/django/6.1/internals/deprecation.html
配信 (syndication) フィード フレームワーク 7579
配信 (syndication) フィード フレームワーク Django には、 RSS と Atom フィードを作成するための高レベルな配信 (syndication) フィード生成フレームワークが付属しています。 任意の配信フィードを作成するには、短い Python クラスを書くだけで済みます。 ... slt" , ] Django の静的ファイルシステムを使うこともできます。 from django.contrib.syndication.views import Feed from django.templatetags.static import static class FeedWithStaticFileStylesheet ( Feed ): stylesheets = [ static ( "rss_styles.xslt" ), ] 別の方法 ...
https://man.mtool.work/django/6.1/ref/contrib/syndication.html
Python プログラマーのための Django テンプレート言語 7579
Python プログラマーのための Django テンプレート言語 この文書は Django テンプレートシステムがどのように動作し、どのように拡張するか、技術的な観点から説明します。構文に関するリファレンスを探しているなら、 Django テンプレート言語 を参照してくだ ... す。たとえば下記のように: Engine ( libraries = { "myapp_tags" : "path.to.myapp.tags" , "admin.urls" : "django.contrib.admin.templatetags.admin_urls" , }, ) {% load %} タグに対応する辞書のキーを渡すことでライブラリをロードできます。 'builtins' : ビルトイン に追 ...
https://man.mtool.work/django/6.1/ref/templates/api.html
PREV 1 NEXT