per page, with , order by , clip by
Results of 1 - 10 of about 58 for hello (0.007 sec.)
暗号署名 — Django 6.1 ドキュメント 13553
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 暗号署名 ¶ ウェブアプリケーションのセキュリティの黄金律は、信頼できない情報源からのデータを決して信頼しないことです。時には、信頼されていない媒体を通 ... したい場合は 、 sign_object() と unsign_object() メソッドを使います。 >>> signed_obj = signer . sign_object ({ "message" : "Hello!" }) >>> signed_obj 'eyJtZXNzYWdlIjoiSGVsbG8hIn0:bzb48DBkB-bwLaCnUVB75r5VAPUEpzWJPrTb80JMIXM' >>> obj = signer . unsign_ob ... ject ( signed_obj ) >>> obj {'message': 'Hello!'} 詳細は 複雑なデータ構造の保護 を参照してください。 何らかの理由により署名の値が書き換わってしまった場合、 django.core.s ... er . sign ( "My string" ) 'My string:v9G-nxfz3iQGTXrePqYPlGvH79WTcIgj1QIQSUODTW0' >>> signer . sign_object ({ "message" : "Hello!" }) 'eyJtZXNzYWdlIjoiSGVsbG8hIn0:bzb48DBkB-bwLaCnUVB75r5VAPUEpzWJPrTb80JMIXM' >>> signer = Signer ( salt = "extra" ) >>> ...
https://man.mtool.work/django/6.1/topics/signing.html
暗号署名 — Django 6.1 ドキュメント 12192
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 暗号署名 ¶ ウェブアプリケーションのセキュリティの黄金律は、信頼できない情報源からのデータを決して信頼しないことです。時には、信頼されていない媒体を通 ... したい場合は 、 sign_object() と unsign_object() メソッドを使います。 >>> signed_obj = signer . sign_object ({ "message" : "Hello!" }) >>> signed_obj 'eyJtZXNzYWdlIjoiSGVsbG8hIn0:bzb48DBkB-bwLaCnUVB75r5VAPUEpzWJPrTb80JMIXM' >>> obj = signer . unsign_ob ... ject ( signed_obj ) >>> obj {'message': 'Hello!'} 詳細は 複雑なデータ構造の保護 を参照してください。 何らかの理由により署名の値が書き換わってしまった場合、 django.core.s ... er . sign ( "My string" ) 'My string:v9G-nxfz3iQGTXrePqYPlGvH79WTcIgj1QIQSUODTW0' >>> signer . sign_object ({ "message" : "Hello!" }) 'eyJtZXNzYWdlIjoiSGVsbG8hIn0:bzb48DBkB-bwLaCnUVB75r5VAPUEpzWJPrTb80JMIXM' >>> signer = Signer ( salt = "extra" ) >>> ...
https://man.mtool.work/django/6.1/topics/signing.html
Django テンプレート言語 — Django 6.1 ドキュメント 9733
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django テンプレート言語 ¶ このドキュメントはDjangoテンプレートシステムの文法を説明しています。もしあなたがもっと技術者的な観点でどう動かすかやどう拡 ... 。 コメント ¶ テンプレートの行の一部をコメントアウトするには、コメント構文 {# #} を使います。 たとえば、このテンプレートは 'hello' としてレンダリングされます: {# greeting #} hello コメントには、たとえ無効でも、どんなテンプレート・コードも含めることがで ... 上書きされます。たとえば、このテンプレートは title ブロックの内容を常に上書きします: {% if change_title %} {% block title %} Hello! {% endblock title %} {% endif %} 最後に、同じテンプレート内で同じ名前の block タグを複数定義することはできないことに留意し ... 結果に悪影響を与えるというリスクが常に付きまといます。たとえば、テンプレートに以下のような部分がある場合を考えてみましょう: Hello, {{ name }} 一見、このコードはユーザの名前を表示するだけの無害なものに見えます。しかし次のような値が名前として入力されてい ...
https://man.mtool.work/django/6.1/ref/templates/language.html
Coding style — Django 6.1 ドキュメント 9733
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Coding style ¶ Please follow these coding standards when writing code for inclusion in Django. Pre-commit checks ¶ pre-commit is a framework for man ... uld use only plain variable and property access, with prior local variable assignment for more complex cases: # Allowed f "hello { user } " f "hello { user . name } " f "hello { self . user . name } " # Disallowed f "hello { get_user () } " f "you are ... { user . age * 365.25 } days old" # Allowed with local variable assignment user = get_user () f "hello { user } " user_days_old = user . age * 365.25 f "you are { user_days_old } days old" f-strings should not be used for any ... commit install Don't block code isort content line extends style first variable base endblock load using docstrings local hello imports module these hooks クイック検索 Last update: 2026年10月09日 « previous | up | next » ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/coding-sty...
Django テンプレート言語 — Django 6.1 ドキュメント 9733
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django テンプレート言語 ¶ このドキュメントはDjangoテンプレートシステムの文法を説明しています。もしあなたがもっと技術者的な観点でどう動かすかやどう拡 ... 。 コメント ¶ テンプレートの行の一部をコメントアウトするには、コメント構文 {# #} を使います。 たとえば、このテンプレートは 'hello' としてレンダリングされます: {# greeting #} hello コメントには、たとえ無効でも、どんなテンプレート・コードも含めることがで ... 上書きされます。たとえば、このテンプレートは title ブロックの内容を常に上書きします: {% if change_title %} {% block title %} Hello! {% endblock title %} {% endif %} 最後に、同じテンプレート内で同じ名前の block タグを複数定義することはできないことに留意し ... 結果に悪影響を与えるというリスクが常に付きまといます。たとえば、テンプレートに以下のような部分がある場合を考えてみましょう: Hello, {{ name }} 一見、このコードはユーザの名前を表示するだけの無害なものに見えます。しかし次のような値が名前として入力されてい ...
https://man.mtool.work/django/6.1/ref/templates/language.html
組み込みテンプレートタグとフィルタ — Django 6.1 ドキュメント 9192
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 組み込みテンプレートタグとフィルタ ¶ このドキュメントでは、 Django の組み込みテンプレートタグとフィルタについて述べます。 また 自動ドキュメンテーショ ... るかの例をいくつか示します: {% if "bc" in "abcdef" %} This appears since "bc" is a substring of "abcdef" {% endif %} {% if "hello" in greetings %} If greetings is a list or set, one element of which is the string "hello", this will appear. {% endif %} ... できる最初のものが使用されます。 include されたテンプレートは、include した側のコンテキストにおいて解釈されます。以下の例は "Hello, John!" を出力します: コンテキスト: 変数 person に "John" を、変数 greeting に "Hello" をセット。 テンプレート: {% include ... って、テンプレートに追加のコンテキストを渡すことができます: {% include "name_snippet.html" with person = "Jane" greeting = "Hello" %} あらかじめ準備された変数だけを使って (あるいは変数をまったく使わずに) 出力させたい場合は only オプションを使います。テ ...
https://man.mtool.work/django/6.1/ref/templates/builtins.html
PDFファイルを作成する — Django 6.1 ドキュメント 9192
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » PDFファイルを作成する ¶ このドキュメントでは、Django のビューを使用して PDF ファイルを動的に出力する方法を説明します。これは、優れたオープンソースの ... ジェクトとして振る舞い、Django の FileResponse オブジェクトがファイルライクなオブジェクトを受け取るということです。 ここに、"Hello World"の例を示します: import io from django.http import FileResponse from reportlab.pdfgen import canvas def some_view ( r ... DF generation happens. # See the ReportLab documentation for the full list of functionality. p . drawString ( 100 , 100 , "Hello world." ) # Close the PDF object cleanly, and we're done. p . showPage () p . save () # FileResponse sets the Content-Disp ... present the option to save the file. buffer . seek ( 0 ) return FileResponse ( buffer , as_attachment = True , filename = "hello.pdf" ) コードとコメントが自分自身の意味を説明しているはずですが、いくつかの点には言及しておくべきでしょう。 レスポンスはフ ...
https://man.mtool.work/django/6.1/howto/outputting-pdf.html
組み込みテンプレートタグとフィルタ — Django 6.1 ドキュメント 9192
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 組み込みテンプレートタグとフィルタ ¶ このドキュメントでは、 Django の組み込みテンプレートタグとフィルタについて述べます。 また 自動ドキュメンテーショ ... るかの例をいくつか示します: {% if "bc" in "abcdef" %} This appears since "bc" is a substring of "abcdef" {% endif %} {% if "hello" in greetings %} If greetings is a list or set, one element of which is the string "hello", this will appear. {% endif %} ... できる最初のものが使用されます。 include されたテンプレートは、include した側のコンテキストにおいて解釈されます。以下の例は "Hello, John!" を出力します: コンテキスト: 変数 person に "John" を、変数 greeting に "Hello" をセット。 テンプレート: {% include ... って、テンプレートに追加のコンテキストを渡すことができます: {% include "name_snippet.html" with person = "Jane" greeting = "Hello" %} あらかじめ準備された変数だけを使って (あるいは変数をまったく使わずに) 出力させたい場合は only オプションを使います。テ ...
https://man.mtool.work/django/6.1/ref/templates/builtins.html
Coding style — Django 6.1 ドキュメント 9045
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Coding style ¶ Please follow these coding standards when writing code for inclusion in Django. Pre-commit checks ¶ pre-commit is a framework for man ... uld use only plain variable and property access, with prior local variable assignment for more complex cases: # Allowed f "hello { user } " f "hello { user . name } " f "hello { self . user . name } " # Disallowed f "hello { get_user () } " f "you are ... { user . age * 365.25 } days old" # Allowed with local variable assignment user = get_user () f "hello { user } " user_days_old = user . age * 365.25 f "you are { user_days_old } days old" f-strings should not be used for any ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/coding-sty...
フォーム API — Django 6.1 ドキュメント 8504
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォーム API ¶ このドキュメントについて このドキュメントでは、Django のフォーム API の詳細について説明します。このドキュメントを読む前に フォームにつ ... インドするには、辞書型のデータを Form クラスのコンストラクタの最初のパラメータとして渡します。 >>> data = { ... "subject" : "hello" , ... "message" : "Hi there" , ... "contact_email" : "foo@example.com" , ... "urgent" : True , ... } >>> f = ContactForm ... ムの is_bound 属性の値を確認してください。 >>> f = ContactForm () >>> f . is_bound False >>> f = ContactForm ({ "subject" : "hello" }) >>> f . is_bound True 空の辞書を渡すと、データが空の バインドされた フォームが作成されることに注意してください。 >>> f ... lid() メソッドを呼び出して検証を実行し、データが有効であるかどうかを示すブール値を返します。 >>> data = { ... "subject" : "hello" , ... "message" : "Hi there" , ... "contact_email" : "foo@example.com" , ... "urgent" : True , ... } >>> f = ContactForm ...
https://man.mtool.work/django/6.1/ref/forms/api.html
PREV 1 2 3 4 5 6 NEXT