per page, with , order by , clip by
Results of 1 - 10 of about 21 for dependencies (0.003 sec.)
データベースのマイグレーションの作成方法 15036
データベースのマイグレーションの作成方法 このドキュメントでは、遭遇する可能性のあるいくつかのシナリオに対する、データベースのマイグレーションの構成方法と書き方について説明します。マイグレーションに関する入門的な資料を探しているなら、 トピッ ... tor . connection . alias != "default" : return # Your migration code goes here class Migration ( migrations . Migration ): dependencies = [ # Dependencies to other migrations ] operations = [ migrations . RunPython ( forwards ), ] You can also provide hints ... ons def forwards ( apps , schema_editor ): # Your migration code goes here ... class Migration ( migrations . Migration ): dependencies = [ # Dependencies to other migrations ] operations = [ migrations . RunPython ( forwards , hints = { "target_db" : "defau ... A.B on YYYY-MM-DD HH:MM from django.db import migrations , models import uuid class Migration ( migrations . Migration ): dependencies = [ ( "myapp" , "0005_populate_uuid_values" ), ] operations = [ migrations . AlterField ( model_name = "mymodel" , name = ...
https://man.mtool.work/django/6.1/howto/writing-migrations.html
Django 1.2.4 リリースノート 10418
Django 1.2.4 リリースノート Django 1.2.4 へようこそ! This is the fourth "bugfix" release in the Django 1.2 series, improving the stability and performance of the Django 1.2 codebase. With one exception, Django 1.2.4 maintains backwards comp ... catastrophic loss of data. In order to provide a fix for this problem, it was necessary to introduce a new setting -- TEST_DEPENDENCIES -- that allows you to define any creation order dependencies in your database configuration. Most users -- even users with ... multiple-database configurations -- need not be concerned about the data loss bug, or the manual configuration of TEST_DEPENDENCIES . See the original problem report documentation on controlling the creation order of test databases for details. GeoDjango ...
https://man.mtool.work/django/6.1/releases/1.2.4.html
Unit tests 9809
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 ... that require pylibmc will be skipped automatically. See Running all the tests for details on installing the optional test dependencies. Running the tests requires a Django settings module that defines the databases to use. To help you get started, Django pr ... k , blacken-docs , flake8 , isort , lint-docs , zizmor , and the documentation spelling checker. In addition to the system dependencies noted elsewhere in this documentation, the command python3 must be on your path and linked to the appropriate version of P ... es -- --settings=my_postgres_settings This command sets up a Python 3.12 virtual environment, installs Django's test suite dependencies (including those for PostgreSQL), and calls runtests.py with the supplied arguments (in this case, --settings=my_postgres_ ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/unit-tests...
テストに関する高度なトピック 9217
テストに関する高度なトピック RequestFactory(リクエスト ファクトリ) class RequestFactory [ソース] RequestFactory はテストクライアントと同じ API を共有しています。しかし、ブラウザのように動作するのではなく、 RequestFactory は任意のビューの最 ... 。しかし、テストセットアップの他のデータベースの作成順は保証されません。 データベース構成が特定の作成順序を必要とする場合、 DEPENDENCIES テスト設定を使用して存在する依存関係を指定できます。次の(単純化した)データベース構成の例を考えてみましょう: DATABASES = ... { "default" : { # ... db settings "TEST" : { "DEPENDENCIES" : [ "diamonds" ], }, }, "diamonds" : { # ... db settings "TEST" : { "DEPENDENCIES" : [], }, }, "clubs" : { # ... db setti ... ngs "TEST" : { "DEPENDENCIES" : [ "diamonds" ], }, }, "spades" : { # ... db settings "TEST" : { "DEPENDENCIES" : [ "diamonds" , "hearts" ], }, }, "hear ...
https://man.mtool.work/django/6.1/topics/testing/advanced.html
Django 1.7.2 リリースノート 8727
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 ... ated inlines and allowed field references in the admin ( #23754 ). Fixed an infinite loop bug for certain cyclic migration dependencies, and made the error message for cyclic dependencies much more helpful. Added missing index_together handling for SQLite ( ...
https://man.mtool.work/django/6.1/releases/1.7.2.html
Django 2.2 リリースノート 8608
Django 2.2 リリースノート April 1, 2019 Django 2.2 へようこそ! このリリースノートでは、 バージョン 2.2 の新機能 と、Django 2.1 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... , as the old pairwise merging algorithm is insufficient for some cases. CSS and JavaScript files which don't include their dependencies may now be sorted incorrectly (where the old algorithm produced results correctly by coincidence). Audit all Media classes ... for any missing dependencies. For example, widgets depending on django.jQuery must specify js=['admin/js/jquery.init.js', ...] when declaring form medi ... f SimpleTestCase.databases , TransactionTestCase.databases , and TestCase.databases . These new attributes allow databases dependencies to be declared in order to prevent unexpected queries against non-default databases to leak state between tests. The previ ...
https://man.mtool.work/django/6.1/releases/2.2.html
マイグレーション 8608
マイグレーション マイグレーション (Migrations) は、Django でモデルに対して行った変更 (フィールドの追加やモデルの削除など) をデータベーススキーマに反映させる方法です。大抵のマイグレーションは自動で行われるものの、いつマイグレーションが作られ ... ションファイルは、次のような形式です。 from django.db import migrations , models class Migration ( migrations . Migration ): dependencies = [( "migrations" , "0001_initial" )] operations = [ migrations . DeleteModel ( "Tribble" ), migrations . AddField ( "Auth ... Migration のサブクラスです。そして、このサブクラスの4つの属性を調べますが、ほとんど場合に使われるのは、次の2つの属性です。 dependencies は、このマイグレーションが依存する他のマイグレーションのリストです。 operations は、このマイグレーションが行う操作を定義し ... # Generated by Django A.B on YYYY-MM-DD HH:MM from django.db import migrations class Migration ( migrations . Migration ): dependencies = [ ( "yourappname" , "0001_initial" ), ] operations = [] Now, all you need to do is create a new function and have RunPyt ...
https://man.mtool.work/django/6.1/topics/migrations.html
Django 2.2.1 リリースノート 8236
Django 2.2.1 リリースノート May 1, 2019 Django 2.2.1 fixes several bugs in 2.2. バグ修正 Fixed a regression in Django 2.1 that caused the incorrect quoting of database user password when using dbshell on Oracle ( #30307 ). Added compatibili ... a custom error handler could not be imported ( #30318 ). Relaxed the system check added in Django 2.2 for the admin app's dependencies to reallow use of SessionMiddleware subclasses, rather than requiring django.contrib.sessions to be in INSTALLED_APPS ( #3 ...
https://man.mtool.work/django/6.1/releases/2.2.1.html
JavaScript code 8118
JavaScript code While most of Django core is Python, the admin and gis contrib apps contain JavaScript code. Please follow these coding standards when writing JavaScript code for inclusion in Django. Code style Please conform to the indenta ... he tests from the command line, you need to have Node.js installed. After installing Node.js , install the JavaScript test dependencies by running the following from the root of your Django checkout: /  $ npm install ...\> npm install Then run the tests w ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/javascript...
Sprint quickstart guide 7881
Sprint quickstart guide This document explains how to prepare to contribute to Django. It is intended for use during sprints, or by people who are already familiar with contributing to Python open source projects. This guide assumes you're ... lenvs/djangodev/bin/activate If you are not using a Unix-like system, see the platform-specific instructions . Install the dependencies to run the tests and build the documentation: /  $ python -m pip install -U pip $ python -m pip install -e . -r tests/r ...
https://man.mtool.work/django/6.1/internals/contributing/sprint-quickstart.html
PREV 1 2 3 NEXT