per page, with , order by , clip by
Results of 1 - 10 of about 66 for document (0.005 sec.)
admin アプリケーションの JavaScript カスタマイズ — Django 6.1 ドキュメント 13385
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » admin アプリケーションの JavaScript カスタマイズ ¶ インラインフォームイベント ¶ インラインフォームが admin アプリケーション変更フォームに追加または削 ... :added イベントでは、 event.target は新しく追加された行です。 カスタムの change_form.html テンプレートで admin_change_form_document_ready ブロックを拡張し、イベントリスナーのコードを追加します: {% extends 'admin/change_form.html' %} {% load static %} {% ... block admin_change_form_document_ready %} {{ block .super }} < script src = " {% static 'app/formset_handlers.js' %} " ></ script > {% endblock %} app/stat ... ic/app/formset_handlers.js ¶ document . addEventListener ( 'formset:added' , ( event ) => { if ( event . detail . formsetName == 'author_set' ) { // Do somethin ...
https://man.mtool.work/django/6.1/ref/contrib/admin/javascript.html
admin アプリケーションの JavaScript カスタマイズ — Django 6.1 ドキュメント 13242
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » admin アプリケーションの JavaScript カスタマイズ ¶ インラインフォームイベント ¶ インラインフォームが admin アプリケーション変更フォームに追加または削 ... :added イベントでは、 event.target は新しく追加された行です。 カスタムの change_form.html テンプレートで admin_change_form_document_ready ブロックを拡張し、イベントリスナーのコードを追加します: {% extends 'admin/change_form.html' %} {% load static %} {% ... block admin_change_form_document_ready %} {{ block .super }} < script src = " {% static 'app/formset_handlers.js' %} " ></ script > {% endblock %} app/stat ... ic/app/formset_handlers.js ¶ document . addEventListener ( 'formset:added' , ( event ) => { if ( event . detail . formsetName == 'author_set' ) { // Do somethin ...
https://man.mtool.work/django/6.1/ref/contrib/admin/javascript.html
Django 4.2 リリースノート — Django 6.1 ドキュメント 9746
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 4.2 リリースノート ¶ 2023年4月3日 Django 4.2 へようこそ! このリリースノートでは、 バージョン 4.2 の新機能 と、Django 4.1 以前からアップグレー ... には非エンコード形式を渡すよう指摘する警告が発せられます。 JSONエンコードされた文字列リテラルを渡すために使われていたコード: Document . objects . bulk_create ( Document ( data = Value ( "null" )), Document ( data = Value ( "[]" )), Document ( data = Value ... ( '"foo-bar"' )), ) Document . objects . annotate ( JSONBAgg ( "field" , default = Value ( "[]" )), ) これは以下のようにすべきです: Document . objects ... . bulk_create ( Document ( data = Value ( None , JSONField ())), Document ( data = []), Document ( data = "foo-bar" ), ) Document . objects . annot ...
https://man.mtool.work/django/6.1/releases/4.2.html
Django 4.2 リリースノート — Django 6.1 ドキュメント 9746
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 4.2 リリースノート ¶ 2023年4月3日 Django 4.2 へようこそ! このリリースノートでは、 バージョン 4.2 の新機能 と、Django 4.1 以前からアップグレー ... には非エンコード形式を渡すよう指摘する警告が発せられます。 JSONエンコードされた文字列リテラルを渡すために使われていたコード: Document . objects . bulk_create ( Document ( data = Value ( "null" )), Document ( data = Value ( "[]" )), Document ( data = Value ... ( '"foo-bar"' )), ) Document . objects . annotate ( JSONBAgg ( "field" , default = Value ( "[]" )), ) これは以下のようにすべきです: Document . objects ... . bulk_create ( Document ( data = Value ( None , JSONField ())), Document ( data = []), Document ( data = "foo-bar" ), ) Document . objects . annot ...
https://man.mtool.work/django/6.1/releases/4.2.html
Django 1.3 リリースノート — Django 6.1 ドキュメント 9603
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 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 plen ... e the final Django release series to do so; beginning with Django 1.4, the minimum supported Python version will be 2.5. A document outlining our full timeline for deprecating Python 2.x and moving to Python 3.x will be published shortly after the releas ... etely generic view base class that can be used as the basis for reusable applications that can be easily extended. See the documentation on class-based generic views for more details. There is also a document to help you convert your function-based gener ... as well -- most notably, the error emails sent on an HTTP 500 server error are now handled as a logging activity. See the documentation on Django's logging interface for more details. Extended static files handling ¶ Django 1.3 ships with a new contrib ...
https://man.mtool.work/django/6.1/releases/1.3.html
Django 1.3 リリースノート — Django 6.1 ドキュメント 9603
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 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 plen ... e the final Django release series to do so; beginning with Django 1.4, the minimum supported Python version will be 2.5. A document outlining our full timeline for deprecating Python 2.x and moving to Python 3.x will be published shortly after the releas ... etely generic view base class that can be used as the basis for reusable applications that can be easily extended. See the documentation on class-based generic views for more details. There is also a document to help you convert your function-based gener ... as well -- most notably, the error emails sent on an HTTP 500 server error are now handled as a logging activity. See the documentation on Django's logging interface for more details. Extended static files handling ¶ Django 1.3 ships with a new contrib ...
https://man.mtool.work/django/6.1/releases/1.3.html
組み込みのビュー — Django 6.1 ドキュメント 8633
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 組み込みのビュー ¶ Django の組み込みビューのいくつかは、 ビューを記述する や他のドキュメントで説明されています。 開発中のファイルの配信 ¶ static. se ... rve ( request , path , document_root , show_indexes = False ) ¶ プロジェクトの静的アセット以外にも、利便性のために、ローカル開発で Django に配信させたいフ ... rest of your URLconf goes here ... if settings . DEBUG : urlpatterns += [ re_path ( r "^media/(?P<path>.*)$" , serve , { "document_root" : settings . MEDIA_ROOT , }, ), ] このコードは MEDIA_URL の値が 'media/' であると仮定しています。これは serve() ビュ ... ーを呼び出して、 URLconf からのパスと、必須の document_root パラメータを渡します。 この URL パターンを定義するのは少し面倒なので、 Django には小さな URL ヘルパー関数 static() が ...
https://man.mtool.work/django/6.1/ref/views.html
Django の CSRF 保護を利用する — Django 6.1 ドキュメント 8490
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django の CSRF 保護を利用する ¶ CSRF 対策をあなたのビューで有効にするには、以下の手順に従ってください: The CSRF middleware is activated by default i ... 変更することができます。 以下のようにしてトークンを取得できます: function getCookie ( name ) { let cookieValue = null ; if ( document . cookie && document . cookie !== '' ) { const cookies = document . cookie . split ( ';' ); for ( let i = 0 ; i < cookies ... CSRF トークンを含め、JavaScript で DOM からトークンを読み取る必要があります: {% csrf_token %} < script > const csrftoken = document . querySelector ( '[name=csrfmiddlewaretoken]' ). value ; </ script > AJAX 通信でトークンを設定する ¶ 最後に、AJAXリクエス ... テンプレート リクエスト csrftoken クッキー デコレータ ミドルウェア request 送信 exempt view レスポンス views 方法 ヘッダー document decorators クイック検索 Last update: 2026年10月09日 « previous | up | next » ...
https://man.mtool.work/django/6.1/howto/csrf.html
Django の CSRF 保護を利用する — Django 6.1 ドキュメント 7934
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django の CSRF 保護を利用する ¶ CSRF 対策をあなたのビューで有効にするには、以下の手順に従ってください: The CSRF middleware is activated by default i ... 変更することができます。 以下のようにしてトークンを取得できます: function getCookie ( name ) { let cookieValue = null ; if ( document . cookie && document . cookie !== '' ) { const cookies = document . cookie . split ( ';' ); for ( let i = 0 ; i < cookies ... CSRF トークンを含め、JavaScript で DOM からトークンを読み取る必要があります: {% csrf_token %} < script > const csrftoken = document . querySelector ( '[name=csrfmiddlewaretoken]' ). value ; </ script > AJAX 通信でトークンを設定する ¶ 最後に、AJAXリクエス ...
https://man.mtool.work/django/6.1/howto/csrf.html
組み込みのビュー — Django 6.1 ドキュメント 7934
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 組み込みのビュー ¶ Django の組み込みビューのいくつかは、 ビューを記述する や他のドキュメントで説明されています。 開発中のファイルの配信 ¶ static. se ... rve ( request , path , document_root , show_indexes = False ) ¶ プロジェクトの静的アセット以外にも、利便性のために、ローカル開発で Django に配信させたいフ ... rest of your URLconf goes here ... if settings . DEBUG : urlpatterns += [ re_path ( r "^media/(?P<path>.*)$" , serve , { "document_root" : settings . MEDIA_ROOT , }, ), ] このコードは MEDIA_URL の値が 'media/' であると仮定しています。これは serve() ビュ ... ーを呼び出して、 URLconf からのパスと、必須の document_root パラメータを渡します。 この URL パターンを定義するのは少し面倒なので、 Django には小さな URL ヘルパー関数 static() が ...
https://man.mtool.work/django/6.1/ref/views.html
PREV 1 2 3 4 5 6 7 NEXT