per page, with , order by , clip by
Results of 1 - 10 of about 25 for serialize (0.004 sec.)
Django オブジェクトのシリアライズ 14097
Django オブジェクトのシリアライズ Django のシリアライズフレームワークは、Django のモデルを他のフォーマットに「翻訳」する仕組みを提供します。通常、このような他のフォーマットはテキストベースや Django データをネットワーク越しに送信するために使 ... ドが使用できます。 データのシリアライズ 最も高いレベルでは、次のようにデータをシリアライズできます。 from django.core import serializers data = serializers . serialize ( "json" , SomeModel . objects . all ()) serialize 関数の引数は、データをシリアライズする ... Django モデルのインスタンスを yield するどんなイテレータでも渡せますが、ほとんど場合は QuerySet になります。) django.core.serializers. get_serializer ( format ) シリアライザーオブジェクトを次のように直接使用することもできます。 JSONSerializer = serialize ... rs . get_serializer ( "json" ) json_serializer = JSONSerializer () json_serializer . serialize ( queryset ) data = json_serializer . getvalue ...
https://man.mtool.work/django/6.1/topics/serialization.html
GeoJSON シリアライザ 12221
GeoJSON シリアライザ GeoDjango は GeoJSON フォーマット専用のシリアライザを提供します。シリアライズの詳細については Django オブジェクトのシリアライズ を参照してください。 geojson シリアライザーはデシリアライザーに相当するものがないため、デー ... は、代わりにプレーンな json シリアライザ を使用してください。 json シリアライザのオプションに加えて、 geojson シリアライザは serializers.serialize() によって呼び出されたときに、以下の追加オプションを受け付けます: geometry_field : GeoJSON フィーチャの geomet ... てのシリアライザと同様に機能し、 properties キーに存在するフィールドを制限するために使用できます。 実装例: from django.core.serializers import serialize from my_app.models import City serialize ( "geojson" , City . objects . all (), geometry_field = "point ...
https://man.mtool.work/django/6.1/ref/contrib/gis/serializers.html
Django 1.7.1 リリースノート 9946
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 referenced in the admin ( #23604 ). Added a more helpful error message if you try to migrate an app with ... tions.RunSQL no longer require percent sign escaping. This is now consistent with cursor.execute() ( #23426 ). TEST 辞書の SERIALIZE 項目を使用可能にしました ( #23421 )。 Fixed bug in migrations that prevented foreign key constraints to unmanaged models w ... #23611 ). Made urlsafe_base64_decode() return the proper type (bytestring) on Python 3 ( #23333 ). makemigrations can now serialize timezone-aware values ( #23365 ). Added a prompt to the migrations questioner when removing the null constraint from a fie ...
https://man.mtool.work/django/6.1/releases/1.7.1.html
Django 1.8.4 リリースノート 9315
Django 1.8.4 リリースノート August 18, 2015 Django 1.8.4 fixes a security issue and several bugs in 1.8.3. Denial-of-service possibility in logout() view by filling session store Previously, a session could be created when anonymously acces ... no longer create empty session records, including when SESSION_SAVE_EVERY_REQUEST is active. バグ修正 Added the ability to serialize values from the newly added UUIDField ( #25019 ). Added a system check warning if the old TEMPLATE_* settings are defined ...
https://man.mtool.work/django/6.1/releases/1.8.4.html
Django 1.11.2 リリースノート 8900
Django 1.11.2 リリースノート June 1, 2017 Django 1.11.2 adds a minor feature and fixes several bugs in 1.11.1. Also, the latest string translations from Transifex are incorporated. Minor feature The new LiveServerTestCase.port attribute rea ... set correctly on multi-table inheritance parent models after saving a child model ( #28210 ). Allowed DjangoJSONEncoder to serialize django.utils.deprecation.CallableBool ( #28230 ). Relaxed the validation added in Django 1.11 of the fields in the default ...
https://man.mtool.work/django/6.1/releases/1.11.2.html
Django 1.5.3 リリースノート 8900
Django 1.5.3 リリースノート September 10, 2013 This is Django 1.5.3, the third release in the Django 1.5 series. It addresses one security issue and also contains an opt-in feature to enhance the security of django.contrib.sessions . Direct ... tigating a remote-code execution vulnerability in django.contrib.sessions django.contrib.sessions currently uses pickle to serialize session data before storing it in the backend. If you're using the signed cookie session backend and SECRET_KEY is known b ... erializing session data using JSON rather than pickle . To facilitate this, Django 1.5.3 introduces a new setting, SESSION_SERIALIZER , to customize the session serialization format. For backwards compatibility, this setting defaults to using pickle . Whi ... le JSON serialization does not support all Python objects like pickle does, we highly recommend switching to JSON-serialized values. Also, as JSON requires string keys, you will likely run into problems if you are using non-string keys in request ...
https://man.mtool.work/django/6.1/releases/1.5.3.html
非同期サポート 8900
非同期サポート Django has support for writing asynchronous ("async") views, along with an entirely async-enabled request stack if you are running under ASGI . Async views will still work under WSGI, but with a small per-request adaptation c ... sitive な参照を渡すことは避ける必要があることに注意してください。 Within a single request, multiple thread_sensitive calls serialize on that request's worker thread, but each request gets its own per-context worker, so concurrent requests do not serialize ... model, and the same constraint applies in other async database libraries, where concurrent queries on a single connection serialize on a lock. To support more concurrent requests, increase the connection pool size accordingly rather than disabling thread ...
https://man.mtool.work/django/6.1/topics/async.html
テストに関する高度なトピック 8701
テストに関する高度なトピック RequestFactory(リクエスト ファクトリ) class RequestFactory [ソース] RequestFactory はテストクライアントと同じ API を共有しています。しかし、ブラウザのように動作するのではなく、 RequestFactory は任意のビューの最 ... 強制的に逐次実行する 並列に実行できないテストクラスがある場合 (共通のリソースを共有している場合など)、 django.test.testcases.SerializeMixin を使って逐次実行できます。このミックスインはファイルシステムの lockfile を使用します。 たとえば、 __file__ を使用する ... と、同じファイルにある SerializeMixin を継承したすべてのテストクラスが順番に実行されるようにすることができます: import os from django.test import TestCase ... from django.test.testcases import SerializeMixin class ImageTestCaseMixin ( SerializeMixin ): lockfile = __file__ def setUp ( self ): self . filename = os . path . jo ...
https://man.mtool.work/django/6.1/topics/testing/advanced.html
Django 6.0 release notes 8269
Django 6.0 release notes December 3, 2025 Welcome to Django 6.0! These release notes cover the new features , as well as some backwards incompatible changes you should be aware of when upgrading from Django 5.2 or earlier. We've begun the d ... either tuples or lists. For instance, prefer unpacking like this: params = ( * lhs_params , * rhs_params ) その他 The JSON serializer now writes a newline at the end of the output, even without the indent option set. The minimum supported version of asgir ... and to ), which may still be passed either as positional or keyword arguments. その他 BaseDatabaseCreation.create_test_db(serialize) is deprecated. Use serialize_db_to_string() instead. The PostgreSQL StringAgg class is deprecated in favor of the general ...
https://man.mtool.work/django/6.1/releases/6.0.html
Django の機能廃止のタイムライン 8070
Django の機能廃止のタイムライン このドキュメントは、 非推奨化ポリシー に従って、Django の様々なパーツが互換性を伴わない方法で変更または削除されるタイミングについて概説しています。各項目についての詳細は、多くの場合 2 つ前のバージョンのリリー ... スノートで見つけることができます。 2028 See the Django 6.0 release notes for more details on these changes. The serialize keyword argument of BaseDatabaseCreation.create_test_db() will be removed. The django.contrib.postgres.aggregates.StringAg ... get_storage_class() 関数は削除されます。 5.0 これらの変更の詳細については、 Django 4.0 リリースノート を参照してください。 SERIALIZE テスト設定が削除されます。 ドキュメント化されていない django.utils.baseconv モジュールは削除されます。 ドキュメント化されて ... .assertFormError() および assertFormsetError() への errors=None という引数の渡し方は削除されます。 django.contrib.sessions.serializers.PickleSerializer は削除されます。 リレーション先オブジェクトをプリフェッチするクエリセットに対して、 chunk_size 引数を提 ...
https://man.mtool.work/django/6.1/internals/deprecation.html
PREV 1 2 3 NEXT