per page, with , order by , clip by
Results of 1 - 10 of about 18 for event (0.005 sec.)
PostgreSQL 固有のモデルフィールド — Django 6.1 ドキュメント 11822
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » PostgreSQL 固有のモデルフィールド ¶ これらのフィールドは全て django.contrib.postgres.fields モジュールから利用できます。 これらのフィールドにインデッ ... 、次の例のモデルを使います: from django.contrib.postgres.fields import IntegerRangeField from django.db import models class Event ( models . Model ): name = models . CharField ( max_length = 200 ) ages = IntegerRangeField () start = models . DateTimeFi ... 以下のオブジェクト例も使用します: >>> import datetime >>> from django.utils import timezone >>> now = timezone . now () >>> Event . objects . create ( name = "Soft play" , ages = ( 0 , 10 ), start = now ) >>> Event . objects . create ( ... name = "Pub ... 包含演算子があります。 contains , contained_by , overlap で、それぞれ SQL 演算子 @> , <@ , && が使われます。 contains ¶ >>> Event . objects . filter ( ages__contains = NumericRange ( 4 , 5 )) <QuerySet [<Event: Soft play>]> contained_by ¶ >>> Event . o ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/fields.html
PostgreSQL 固有のモデルフィールド — Django 6.1 ドキュメント 11822
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » PostgreSQL 固有のモデルフィールド ¶ これらのフィールドは全て django.contrib.postgres.fields モジュールから利用できます。 これらのフィールドにインデッ ... 、次の例のモデルを使います: from django.contrib.postgres.fields import IntegerRangeField from django.db import models class Event ( models . Model ): name = models . CharField ( max_length = 200 ) ages = IntegerRangeField () start = models . DateTimeFi ... 以下のオブジェクト例も使用します: >>> import datetime >>> from django.utils import timezone >>> now = timezone . now () >>> Event . objects . create ( name = "Soft play" , ages = ( 0 , 10 ), start = now ) >>> Event . objects . create ( ... name = "Pub ... 包含演算子があります。 contains , contained_by , overlap で、それぞれ SQL 演算子 @> , <@ , && が使われます。 contains ¶ >>> Event . objects . filter ( ages__contains = NumericRange ( 4 , 5 )) <QuerySet [<Event: Soft play>]> contained_by ¶ >>> Event . o ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/fields.html
admin アプリケーションの JavaScript カスタマイズ — Django 6.1 ドキュメント 11770
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » admin アプリケーションの JavaScript カスタマイズ ¶ インラインフォームイベント ¶ インラインフォームが admin アプリケーション変更フォームに追加または削 ... 除された際に JavaScript を実行したい場合、 formset:added と formset:removed イベントを使用できます。 event.detail.formsetName は行が属するフォームセットを示します。 formset:added イベントでは、 event.target は新しく追加された行で ... " {% static 'app/formset_handlers.js' %} " ></ script > {% endblock %} app/static/app/formset_handlers.js ¶ document . addEventListener ( 'formset:added' , ( event ) => { if ( event . detail . formsetName == 'author_set' ) { // Do something } }); doc ... ument . addEventListener ( 'formset:removed' , ( event ) => { // Row removed }); 注意点が2つあります: もし admin/change_form.html を継承して ...
https://man.mtool.work/django/6.1/ref/contrib/admin/javascript.html
admin アプリケーションの JavaScript カスタマイズ — Django 6.1 ドキュメント 11667
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » admin アプリケーションの JavaScript カスタマイズ ¶ インラインフォームイベント ¶ インラインフォームが admin アプリケーション変更フォームに追加または削 ... 除された際に JavaScript を実行したい場合、 formset:added と formset:removed イベントを使用できます。 event.detail.formsetName は行が属するフォームセットを示します。 formset:added イベントでは、 event.target は新しく追加された行で ... " {% static 'app/formset_handlers.js' %} " ></ script > {% endblock %} app/static/app/formset_handlers.js ¶ document . addEventListener ( 'formset:added' , ( event ) => { if ( event . detail . formsetName == 'author_set' ) { // Do something } }); doc ... ument . addEventListener ( 'formset:removed' , ( event ) => { // Row removed }); 注意点が2つあります: もし admin/change_form.html を継承して ...
https://man.mtool.work/django/6.1/ref/contrib/admin/javascript.html
非同期サポート — Django 6.1 ドキュメント 8012
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 非同期サポート ¶ Django has support for writing asynchronous ("async") views, along with an entirely async-enabled request stack if you are running ... to run. The per-call cost of this adaptation is small: tens of microseconds in the in-request ASGI path, where the running event loop is reused, and a few hundred microseconds in the cold-start path used by management commands, background tasks, and s ... t when you are using ASGI for high in-process concurrency over non-ORM I/O (for example upstream HTTP fan-out, server-sent events, or other long-lived requests), where the extra thread per request caps that concurrency. 自分のコード上での ASGI と WSGI ... also enables the thread_sensitive mode of sync_to_async() when that wrapper is used below it. In the cold path (no running event loop) it pays the cost of starting a fresh event loop, like asyncio.run() ; when an event loop is already running (the in- ...
https://man.mtool.work/django/6.1/topics/async.html
非同期サポート — Django 6.1 ドキュメント 8012
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 非同期サポート ¶ Django has support for writing asynchronous ("async") views, along with an entirely async-enabled request stack if you are running ... to run. The per-call cost of this adaptation is small: tens of microseconds in the in-request ASGI path, where the running event loop is reused, and a few hundred microseconds in the cold-start path used by management commands, background tasks, and s ... t when you are using ASGI for high in-process concurrency over non-ORM I/O (for example upstream HTTP fan-out, server-sent events, or other long-lived requests), where the extra thread per request caps that concurrency. 自分のコード上での ASGI と WSGI ... also enables the thread_sensitive mode of sync_to_async() when that wrapper is used below it. In the cold path (no running event loop) it pays the cost of starting a fresh event loop, like asyncio.run() ; when an event loop is already running (the in- ...
https://man.mtool.work/django/6.1/topics/async.html
Django 1.7.1 リリースノート — Django 6.1 ドキュメント 7721
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.7.1 リリースノート ¶ October 22, 2014 Django 1.7.1 fixes several bugs in 1.7. バグ修正 ¶ Allowed related many-to-many fields to be referenc ... have been fixed (trailing dot removed, #23532 ). Added quoting of constraint names in the SQL generated by migrations to prevent crash with uppercase characters in the name ( #23065 ). Fixed renaming of models with a self-referential many-to-many fiel ... th cursor.execute() ( #23426 ). TEST 辞書の SERIALIZE 項目を使用可能にしました ( #23421 )。 Fixed bug in migrations that prevented foreign key constraints to unmanaged models with a custom primary key ( #23415 ). Added SchemaEditor for MySQL GIS backe ... e-aware values ( #23365 ). Added a prompt to the migrations questioner when removing the null constraint from a field to prevent an IntegrityError on existing NULL rows ( #23609 ). Fixed generic relations in ModelAdmin.list_filter ( #23616 ). Restored ...
https://man.mtool.work/django/6.1/releases/1.7.1.html
Django 1.7.1 リリースノート — Django 6.1 ドキュメント 7721
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.7.1 リリースノート ¶ October 22, 2014 Django 1.7.1 fixes several bugs in 1.7. バグ修正 ¶ Allowed related many-to-many fields to be referenc ... have been fixed (trailing dot removed, #23532 ). Added quoting of constraint names in the SQL generated by migrations to prevent crash with uppercase characters in the name ( #23065 ). Fixed renaming of models with a self-referential many-to-many fiel ... th cursor.execute() ( #23426 ). TEST 辞書の SERIALIZE 項目を使用可能にしました ( #23421 )。 Fixed bug in migrations that prevented foreign key constraints to unmanaged models with a custom primary key ( #23415 ). Added SchemaEditor for MySQL GIS backe ... e-aware values ( #23365 ). Added a prompt to the migrations questioner when removing the null constraint from a field to prevent an IntegrityError on existing NULL rows ( #23609 ). Fixed generic relations in ModelAdmin.list_filter ( #23616 ). Restored ...
https://man.mtool.work/django/6.1/releases/1.7.1.html
コンテンツセキュリティポリシー — Django 6.1 ドキュメント 7635
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » コンテンツセキュリティポリシー ¶ New in Django 6.0. Content Security Policy (CSP) is a web security standard that helps prevent content injection at ... eval() and similar JavaScript functions. Strongly discouraged. UNSAFE_HASHES ¶ Represents 'unsafe-hashes' . Allows inline event handlers and some javascript: URIs when their content hashes match a policy rule. Requires CSP Level 3+. UNSAFE_INLINE ¶ R ...
https://man.mtool.work/django/6.1/ref/csp.html
QuerySet API リファレンス — Django 6.1 ドキュメント 7635
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » QuerySet API リファレンス ¶ このドキュメントでは、 QuerySet API の詳細を説明しています。 モデル と データベースクエリ ガイドにある説明を前提としてい ... れています(たとえば、 ManyToManyField フィールド、もしくは ForeignKey フィールドの逆参照など)。 このケースを考えます: class Event ( Model ): parent = models . ForeignKey ( "self" , on_delete = models . CASCADE , related_name = "children" , ) date = mod ... els . DateField () Event . objects . order_by ( "children__date" ) ここで、それぞれの Event に対して、複数の並べ替えデータが存在する可能性があります ... ; 複数の children を伴う Event は、 order_by() が作る新たな QuerySet においてそれぞれ複数回返されることになります。言い換えれば、 QuerySet で order_by() ...
https://man.mtool.work/django/6.1/ref/models/querysets.html
PREV 1 2 NEXT