per page, with , order by , clip by
Results of 1 - 10 of about 74 for templates (0.006 sec.)
テンプレートをオーバーライドする 14211
テンプレートをオーバーライドする プロジェクトでは、 django.contrib.admin のような contrib アプリケーションやサードパーティアプリケーションで Djangoアプリケーションのテンプレートを上書きすることができます。 テンプレートの上書きは、プロジェク ... 参考 そのようなことをしたい場合は、 組み込みのウィジェットテンプレートをオーバーライドする を読んでください。 プロジェクトのtemplatesディレクトリからオーバーライドする 最初に、プロジェクトのテンプレートディレクトリに置き換え用テンプレートを作成して、テンプレ ... pathlib import Path BASE_DIR = Path ( __file__ ) . resolve () . parent . parent INSTALLED_APPS = [ ... , "blog" , ... , ] TEMPLATES = [ { "BACKEND" : "django.template.backends.django.DjangoTemplates" , "DIRS" : [ BASE_DIR / "templates" ], "APP_DIRS" : Tr ... ue , # ... }, ] デフォルトのプロジェクトテンプレートを使ってプロジェクトを作成した場合、 TEMPLATES 設定と BASE_DIR はすでに存在しています。変更が必要な設定は DIRS です。 これらの設定はプロジェクトのルートに templates ディ ...
https://man.mtool.work/django/6.1/howto/overriding-templates.html
Python プログラマーのための Django テンプレート言語 10770
Python プログラマーのための Django テンプレート言語 この文書は Django テンプレートシステムがどのように動作し、どのように拡張するか、技術的な観点から説明します。構文に関するリファレンスを探しているなら、 Django テンプレート言語 を参照してくだ ... プロジェクトは通常、テンプレートシステムの低レベルの API ではなく、 バックエンドに依存しない高レベルの API に依存しています: TEMPLATES 設定の中で、各 DjangoTemplates バックエンドに対して、Djangoは Engine をインスタンス化します。 DjangoTemplates は Engine を ... 合によってはリクエストを Context に集約し、その下にある Template にレンダリングを委譲します。 エンジンを設定する もし DjangoTemplates バックエンドを使っているのであれば、これはおそらくあなたが探しているドキュメントではありません。後述する Engine クラスのイ ... ンスタンスには、そのバックエンドの engine 属性を使ってアクセスすることができ、後述する属性のデフォルトは DjangoTemplates で渡されたもので上書きされます。 class Engine ( dirs = None , app_dirs = False , context_processors = None , debug = False ...
https://man.mtool.work/django/6.1/ref/templates/api.html
How to use Django's Content Security Policy 9516
How to use Django's Content Security Policy Basic config Content Security Policy (CSP) を有効にするには、Django プロジェクトで次のように設定します: Add the CSP middleware to your MIDDLEWARE setting: MIDDLEWARE = [ # ... "django.middleware.c ... cure 'unsafe-inline' option. "style-src" : [ CSP . SELF , CSP . UNSAFE_INLINE ], } Add the csp() context processor to your TEMPLATES setting. This makes the generated nonce value available in the Django templates as the csp_nonce context variable: TEMPLAT ... ES = [ { "BACKEND" : "django.template.backends.django.DjangoTemplates" , "OPTIONS" : { "context_processors" : [ # ... "django.template.context_processors.csp" , ], }, }, ] In your templates, a ...
https://man.mtool.work/django/6.1/howto/csp.html
はじめての Django アプリ作成、その 3 9516
はじめての Django アプリ作成、その 3 このチュートリアルは チュートリアルその 2 の続きです。ここでは、引続き Web 投票アプリケーションの開発を例にして、公開用のインタフェース、ビュー(view) の作成を焦点に解説します。 困ったときは: このチュート ... ded in the view. If you want to change the way the page looks, you'll have to edit this Python code. So let's use Django's template system to separate the design from Python by creating a template that the view can use. 最初に、 polls ディレクトリの中に、 ... templates ディレクトリを作成します。 Django はそこからテンプレートを探します。 プロジェクトの TEMPLATES には、Django がどのようにテン ... プレートをロードしレンダリングするかが書かれています。デフォルトの設定ファイルでは、 DjangoTemplates バックエンドが設定されており、その APP_DIRS のオプションが True になっています。規約により、 DjangoTemplates は INSTALLED_ ...
https://man.mtool.work/django/6.1/intro/tutorial03.html
Django 4.1 リリースノート 9516
Django 4.1 リリースノート 2022年8月3日 Django 4.1 へようこそ! このリリースノートでは、 バージョン 4.1 の新機能 と、Django 4.0 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... rm rendering accessibility In order to aid users with screen readers, and other assistive technology, new <div> based form templates are available from this release. These provide more accessible navigation than the older templates, and are able to correc ... tly group related controls, such as radio-lists, into fieldsets. The new templates are recommended, and will become the default form rendering style when outputting a form, like {{ form }} in a template, f ... rom Django 5.0. In order to ease adopting the new output style, the default form and formset templates are now configurable at the project level via the FORM_RENDERER setting. See the Forms section (below) for full details. C ...
https://man.mtool.work/django/6.1/releases/4.1.html
はじめての Django アプリ作成、その 7 9390
はじめての Django アプリ作成、その 7 このチュートリアルは チュートリアル その6 の続きです。ここでは、引き続き Web 投票アプリケーションの開発を続け、 チュートリアル その2 で少し触れた、Django が 自動生成する管理サイトのカスタマイズに焦点を当 ... ango独自のテンプレートシステムを使用しています。 プロジェクト テンプレートをカスタムする。 djangotutorial ディレクトリ内に templates ディレクトリを作成してください。テンプレートは、Djangoがアクセスできる任意の場所に配置できます(Djangoはサーバーが実行され ... 。しかし、プロジェクト内にテンプレートを配置するのが良い慣習とされています。 設定ファイル ( mysite/settings.py ) を開いて、 TEMPLATES 設定オプションの中に、次のように DIRS オプションを追加します。 mysite/settings.py TEMPLATES = [ { "BACKEND" : "django.temp ... late.backends.django.DjangoTemplates" , "DIRS" : [ BASE_DIR / "templates" ], "APP_DIRS" : True , "OPTIONS" : { "context_processors" : [ "django.template.contex ...
https://man.mtool.work/django/6.1/intro/tutorial07.html
Django 1.6 リリースノート 9167
Django 1.6 リリースノート 注釈 Dedicated to Malcolm Tredinnick On March 17, 2013, the Django project and the free software community lost a very dear friend and developer. Malcolm was a long-time contributor to Django, a model community mem ... thon 3.4 is not supported, but support will be added in Django 1.7. Django 1.6 の新機能 Simplified default project and app templates The default templates used by startproject and startapp have been simplified and modernized. The admin is now enabled by d ... s; the sites framework no longer is. clickjacking prevention is now on and the database defaults to SQLite. If the default templates don't suit your tastes, you can use custom project and app templates . Improved transaction management Django's transactio ... een upgraded to version 1.9.1. Syndication feeds ( django.contrib.syndication ) can now pass extra context through to feed templates using a new Feed.get_context_data() callback. The admin list columns have a column-<field_name> class in the HTML so the c ...
https://man.mtool.work/django/6.1/releases/1.6.html
Django 1.5 リリースノート 8819
Django 1.5 リリースノート February 26, 2013 Django 1.5 へようこそ! 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 1.4 or older versions. We'v ... or where myview was seen as a variable. The upshot of this is that if you are not using {% load url from future %} in your templates, you'll need to change tags like {% url myview %} to {% url "myview" %} . If you were using {% load url from future %} you ... test for streaming responses and behave accordingly. {% verbatim %} template tag To make it easier to deal with JavaScript templates which collide with Django's syntax, you can now use the verbatim block tag to avoid parsing the tag's content. Retrieval o ... g). When using RequestContext , it is now possible to look up permissions by using {% if 'someapp.someperm' in perms %} in templates. It's not required any more to have 404.html and 500.html templates in the root templates directory. Django will output so ...
https://man.mtool.work/django/6.1/releases/1.5.html
システムチェックフレームワーク 8359
システムチェックフレームワーク システムチェックフレームワークは、Django プロジェクトを検証するための静的チェックのセットです。一般的な問題を検出し、それらを修正するヒントを提供します。このフレームワークは拡張性があり、独自のチェックを簡単に ... す。 sites : django.contrib.sites の設定をチェックします。 staticfiles : django.contrib.staticfiles の設定をチェックします。 templates : テンプレート関連の設定をチェックします。 translation : 翻訳関連の設定をチェックします。 urls : URLの構成をチェックします ... したが、アプリ <app label> がインストールされていないか、モデル <model> を提供していません。 テンプレート 以下のチェックは、 TEMPLATES 設定が正しく構成されているかどうかを確認します。 templates.E001 : 'APP_DIRS': True が設定されている TEMPLATES 内で、同時に ... ください。 このチェックはDjango 5.1で削除され、システムチェックは代わりに ImproperlyConfigured を発生させる場合があります。 templates.E002 : TEMPLATES OPTIONS 内の string_if_invalid は文字列でなければなりませんが、渡された値は {value} ( {type} ) です。 tem ...
https://man.mtool.work/django/6.1/ref/checks.html
Django 1.3 リリースノート 8359
Django 1.3 リリースノート March 23, 2011 Django 1.3 へようこそ! Nearly a year in the making, Django 1.3 includes quite a few new features and plenty of bug fixes and improvements to existing features. These release notes cover the new featu ... _URL and the new STATIC_URL setting as long as it is not blank. This ensures there is a consistent way to combine paths in templates. Project settings which provide either of both settings without a trailing slash will now raise a PendingDeprecationWarnin ... ータを渡さないか None を渡します。 >>> formset = ArticleFormSet () >>> formset = ArticleFormSet ( data = None ) Callables in templates 以前は、テンプレート内の呼び出し可能な要素は、属性ルックアップによって取得された場合にのみ、変数解決処理の一部として自動的 ... useful for a template language designed for web designers, and was never deliberately supported, it is possible that some templates may be broken by this change. Use of custom SQL to load initial data in tests Django provides a custom SQL hooks as a way ...
https://man.mtool.work/django/6.1/releases/1.3.html
PREV 1 2 3 4 5 6 7 8 NEXT