per page, with , order by , clip by
Results of 1 - 10 of about 15 for autoescape (0.008 sec.)
独自のテンプレートタグとフィルタを作る 14385
独自のテンプレートタグとフィルタを作る Django のテンプレート言語は、アプリケーションのプレゼンテーションロジックのニーズに対応するように設計された、多種多様な 埋め込みタグやフィルタ を搭載しています。それでもなお、テンプレート構成要素のコア ... に、Django はフィルタ名として関数の名前を利用します。 最後に、 register.filter() は 3 つのキーワード引数 ( is_safe 、 needs_autoescape 、 expects_localtime ) を受け入れます。これらの引数は、後述の フィルタと自動エスケープ と フィルタとタイムゾーン の中で説明 ... きるフィルタを書くことが考えられます。 フィルタが現在の自動エスケープの状態を知るためには、フィルタ関数を登録する際に needs_autoescape フラグを True に設定します。(このフラグを指定しない場合、デフォルトは False です)。このフラグは、追加のキーワード引数 auto ... jangoに渡すようにフィルタ関数に伝えます。この引数は自動エスケープが有効の場合は True 、そうでない場合は False となります。 autoescape パラメータのデフォルトは True に設定しておくことが推奨されます。これにより、Pythonコードから関数を呼び出したときにデフォル ...
https://man.mtool.work/django/6.1/howto/custom-template-tags.html
組み込みテンプレートタグとフィルタ 10954
組み込みテンプレートタグとフィルタ このドキュメントでは、 Django の組み込みテンプレートタグとフィルタについて述べます。 また 自動ドキュメンテーション を使えばインストールされている組み込みタグとカスタムタグのドキュメントを読めるのでお勧めで ... す。 組み込みタグリファレンス autoescape 自動エスケープ機能を制御します。このタグは引数に on または off を取り、ブロック内の自動エスケープの有効・無効を決定します。 ... ブロックの最後は endautoescape タグで閉じるようにします。 使用例: {% autoescape on %} {{ body }} {% endautoescape %} 自動エスケープがオンの場合、すべての ... e を含むフィルタを連結すると、以下のような予期しない(しかしドキュメント化されている)結果を引き起こす可能性があります: {% autoescape off %} {{ my_list | join :", " | escape }} {% endautoescape %} 上記のコードは my_list の結合された要素をエスケープせずに出 ...
https://man.mtool.work/django/6.1/ref/templates/builtins.html
Django テンプレート言語 9317
Django テンプレート言語 このドキュメントはDjangoテンプレートシステムの文法を説明しています。もしあなたがもっと技術者的な観点でどう動かすかやどう拡張するかを知りたい場合は、 Python プログラマーのための Django テンプレート言語 を参照してくださ ... ロック単位での制御 テンプレート単位で自動エスケープを制御するには、テンプレート (または テンプレートの一部) を、以下のように autoescape タグで囲みます: {% autoescape off %} Hello {{ name }} {% endautoescape %} autoescape タグは、 on または off を引数にとりま ... らにその一部で自動エスケープをオフにしたい場合には、次のようにできます: Auto-escaping is on by default. Hello {{ name }} {% autoescape off %} This will not be auto-escaped: {{ data }} . Nor this: {{ other_data }} {% autoescape on %} Auto-escaping applies ag ... ain: {{ name }} {% endautoescape %} {% endautoescape %} 自動エスケープのタグは、他のブロックタグと同様、タグを設定したテンプレートを継承している他のテンプレ ...
https://man.mtool.work/django/6.1/ref/templates/language.html
Python プログラマーのための Django テンプレート言語 8899
Python プログラマーのための Django テンプレート言語 この文書は Django テンプレートシステムがどのように動作し、どのように拡張するか、技術的な観点から説明します。構文に関するリファレンスを探しているなら、 Django テンプレート言語 を参照してくだ ... , debug = False , loaders = None , string_if_invalid = '' , file_charset = 'utf-8' , libraries = None , builtins = None , autoescape = True ) [ソース] Engine をインスタンス化する際は、すべての引数をキーワード引数として渡す必要があります: dirs はエンジンが ... トは空のリストです。 app_dirs は loaders のデフォルト値にだけ影響します。下記を参照してください。 デフォルトは False です。 autoescape はHTMLのオートエスケープを有効にするかどうかをコントロールします。 デフォルトは True です。 警告 HTML以外のテンプレートをレ ... グできます。同じテンプレートを再利用して、異なるコンテキストで何度でもレンダリングできます。 class Context ( dict_ = None , autoescape = True , use_l10n = None , use_tz = None ) [ソース] django.template.Context のコンストラクタは、オプションの引数(変数名と ...
https://man.mtool.work/django/6.1/ref/templates/api.html
Porting your apps from Django 0.96 to 1.0 8359
Porting your apps from Django 0.96 to 1.0 Django 1.0 breaks compatibility with 0.96 in some areas. This guide will help you port 0.96 projects and apps to 1.0. The first part of this document includes the common changes needed to run with 1 ... } To disable auto-escaping for an entire template, wrap the template (or just a particular section of the template) in the autoescape tag: {% autoescape off %} ... unescaped template content here ... {% endautoescape %} Less-common changes The following ch ...
https://man.mtool.work/django/6.1/releases/1.0-porting-guide.html
Django 1.0 リリースノート 8081
Django 1.0 リリースノート Django 1.0 へようこそ! We've been looking forward to this moment for over three years, and it's finally here. Django 1.0 represents the largest milestone in Django's development to date: a web framework that a grou ... safe (requiring no escaping) or unsafe (requiring escaping). A full guide to this feature is in the documentation for the autoescape tag. django.contrib.gis (GeoDjango) A project over a year in the making, this adds world-class GIS ( Geographic Informatio ...
https://man.mtool.work/django/6.1/releases/1.0.html
Django 1.4 リリースノート 8081
Django 1.4 リリースノート March 23, 2012 Django 1.4 へようこそ! 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.3 or older versions. We've a ... nted as part of the public API, but a deprecation path is needed due to use in existing manage.py files. is_safe and needs_autoescape attributes of template filters Two flags, is_safe and needs_autoescape , define how each template filter interacts with Dj ...
https://man.mtool.work/django/6.1/releases/1.4.html
Django 1.6 リリースノート 8081
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 ... ss to correct this inconsistency. The future template library provides alternate implementations of cycle and firstof that autoescape their inputs. If you're using these tags, you're encouraged to include the following line at the top of your templates to ... uld be modified to use the future versions. If necessary, you can temporarily disable auto-escaping with mark_safe() or {% autoescape off %} . CACHE_MIDDLEWARE_ANONYMOUS_ONLY setting CacheMiddleware and UpdateCacheMiddleware used to provide a way to cache ...
https://man.mtool.work/django/6.1/releases/1.6.html
テンプレート 8081
テンプレート Django はウェブフレームワークなので、HTML を動的に生成する便利な手段が必要でした。最も一般的なアプローチは、テンプレートに頼ることです。テンプレートには、出力したい HTML を書いた静的な部分と、動的なコンテンツを挿入する方法を書い ... プレートを探します。この一般名は後方互換性のために残されています。 DjangoTemplates エンジンは以下の OPTIONS を受け付けます: 'autoescape' : HTMLのオートエスケープを有効にするかどうかをコントロールする真偽値です。 デフォルトは True です。 警告 HTML以外のテンプ ... オプションをキーワード引数として渡します。さらに、 Django はいくつかのオプションに Jinja2 とは異なるデフォルトを追加します: 'autoescape' : True 'loader' : DIRS と APP_DIRS に設定されたローダー。 'auto_reload' : settings.DEBUG 'undefined' : DebugUndefined if ...
https://man.mtool.work/django/6.1/topics/templates.html
Django 1.9 リリースノート 7941
Django 1.9 リリースノート December 1, 2015 Django 1.9 へようこそ! このリリースノートでは、 バージョン 1.9 の新機能 と、Django 1.8 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機 ... defining a DjangoTemplates backend. simple_tag now wraps tag output in conditional_escape In general, template tags do not autoescape their contents, and this behavior is documented . For tags like inclusion_tag , this is not a problem because the included ... his will be an XSS issue because user.first_name is not escaped. In Django 1.9, this is fixed: if the template context has autoescape=True set (the default), then simple_tag will wrap the output of the tag function with conditional_escape() . To fix your s ...
https://man.mtool.work/django/6.1/releases/1.9.html
PREV 1 2 NEXT