per page, with , order by , clip by
Results of 1 - 10 of about 11 for registry (0.076 sec.)
Django 1.7.2 リリースノート 13478
Django 1.7.2 リリースノート January 2, 2015 Django 1.7.2 fixes several bugs in 1.7.1. Additionally, Django's vendored version of six, django.utils.six , has been upgraded to the latest release (1.9.0). バグ修正 Fixed migration's renaming of ... duplicate models when a module is reloaded. Previously a RuntimeError was raised every time two models clashed in the app registry. ( #23621 ). Prevented flush from loading initial data for migrated apps ( #23699 ). Fixed a makemessages regression in 1. ... al if all apps have migrations ( #23975 ). Made admin system checks run for custom AdminSite s ( #23497 ). Ensured the app registry is fully populated when unpickling models. When an external script (like a queueing infrastructure) reloads pickled models ... , it could crash with an AppRegistryNotReady exception ( #24007 ). Added quoting to field indexes in the SQL generated by migrations to prevent a crash when th ...
https://man.mtool.work/django/6.1/releases/1.7.2.html
Django 1.7 リリースノート 10900
Django 1.7 リリースノート September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した ... Is. As the concept of Django applications matured, this code showed some shortcomings. It has been refactored into an "app registry" where models modules no longer have a central role and where it's possible to attach configuration data to applications. ... tialize Django at the beginning of your script with: >>> import django >>> django . setup () Otherwise, you will hit an AppRegistryNotReady exception. WSGI scripts Until Django 1.3, the recommended way to create a WSGI application was: import django.core ... on () If you're still using the former style in your WSGI script, you need to upgrade to the latter, or you will hit an AppRegistryNotReady exception. App registry consistency It is no longer possible to have multiple installed applications with the same ...
https://man.mtool.work/django/6.1/releases/1.7.html
マイグレーション・オペレーション 9353
マイグレーション・オペレーション マイグレーションファイルは一つ以上の オペレーション 、データベースに対してマイグレーションが行うべきオペレーションを宣言的に保持するオブジェクト、から構成されます。 Django はこれらの Operation オブジェクトも ... トでなければなりません;第一引数はプロジェクトの履歴において処理の場所が一致している履歴を反映したモデルを含んだ django.apps.registry.Apps のインスタンスであり、第二引数は SchemaEditor のインスタンスです。 reverse_code 引数はマイグレーションを元に戻す際に呼 ... ます: from django.db import migrations def forwards_func ( apps , schema_editor ): # We get the model from the versioned app registry; # if we directly import it, it'll be the wrong version Country = apps . get_model ( "myapp" , "Country" ) db_alias = sche ...
https://man.mtool.work/django/6.1/ref/migration-operations.html
Django 1.10 リリースノート 8837
Django 1.10 リリースノート 2016年8月1日 Django 1.10 へようこそ! このリリースノートでは、 バージョン 1.10 の新機能 と、Django 1.9 以前からアップグレードする際に注意が必要な 後方互換性が失われた変更点 について説明します。私たちは、非推奨の期間 ... め、これらのカスタムな user テストモデルはもう作成されなくなり、テストのコンテキストでは役に立たないものになりました。 Apps registry is no longer auto-populated when unpickling models outside of Django The apps registry is no longer auto-populated when un ...
https://man.mtool.work/django/6.1/releases/1.10.html
Djangoの設定 8837
Djangoの設定 Djangoの設定ファイルには、インストールしたDjangoの全ての設定が含まれています。このドキュメントでは、各設定の役割と、どのような設定を利用できるか説明していきます。 基礎 設定ファイルはモジュールレベルの変数が記述された、ただのPyt ... _MODULE or called configure() , you'll need to call django.setup() to load your settings and populate Django's application registry. For example: import django from django.conf import settings from myapp import myapp_defaults settings . configure ( defau ...
https://man.mtool.work/django/6.1/topics/settings.html
Unit tests 8321
Unit tests Django comes with a test suite of its own, in the tests directory of the code base. It's our policy to make sure all tests pass at all times. We appreciate any and all contributions to the test suite! The Django tests all use the ... ironment variable for this purpose. Tips for writing tests Isolating model registration To avoid polluting the global apps registry and prevent unnecessary table creation, models defined in a test method should be bound to a temporary Apps instance. To d ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/unit-tests...
staticfiles アプリ 8321
staticfiles アプリ django.contrib.staticfiles は、各アプリケーション(と、あらかじめ指定した他の場所)から静的ファイルを収集し、本番環境で簡単に提供できるように一か所にまとめます。 参考 静的ファイルアプリの導入と活用例については、 静的ファイ ... Red Hat distribution, mime-support on a Debian distribution, or by editing the keys under HKEY_CLASSES_ROOT in the Windows registry. このビューは、 runserver (および DEBUG 設定が True に設定されている場合) によって自動的に有効になります。異なるローカル開 ...
https://man.mtool.work/django/6.1/ref/contrib/staticfiles.html
マイグレーション 7806
マイグレーション マイグレーション (Migrations) は、Django でモデルに対して行った変更 (フィールドの追加やモデルの削除など) をデータベーススキーマに反映させる方法です。大抵のマイグレーションは自動で行われるものの、いつマイグレーションが作られ ... on and have RunPython use it. RunPython expects a callable as its argument which takes two arguments - the first is an app registry that has the historical versions of all your models loaded into it to match where in your history the migration sits, and ...
https://man.mtool.work/django/6.1/topics/migrations.html
Django のキャッシュフレームワーク 7290
Django のキャッシュフレームワーク 動的なウェブサイトの基本的なトレードオフは、ええと、それが動的であるということです。ユーザーがページをリクエストするたびに、ウェブサーバーはあらゆる種類の計算を行い (データベースのクエリから、テンプレートの ... transform=True must_revalidate=True stale_while_revalidate=num_seconds no_cache=True 既知のディレクティブの全リストは IANA registry にあります (すべてのディレクティブがレスポンスに適用されるわけではないことに注意してください)。 ヘッダーを使用してキャッシ ...
https://man.mtool.work/django/6.1/topics/cache.html
クエリを作成する 7290
クエリを作成する 一度 データモデル を作成すれば、Django はデータオブジェクトの作成、取得、更新および削除を行えるようにデータベースを抽象化した API を自動的に提供します。本ドキュメントではこの API をどのように用いるかを説明します。多様なモデ ... のどのモデルクラスと関係しているのか、関係先のモデルクラスが読み込まれるまで分からないはずです。 The answer lies in the app registry . When Django starts, it imports each application listed in INSTALLED_APPS , and then the models module inside each applic ...
https://man.mtool.work/django/6.1/topics/db/queries.html
PREV 1 2 NEXT