per page, with , order by , clip by
Results of 1 - 10 of about 23 for fixture (0.003 sec.)
フィクスチャ (fixture) 15366
フィクスチャ (fixture) フィクスチャ (fixture) とは、シリアライズされたデータベースのコンテンツを含むファイルのコレクションです。各フィクスチャにはユニークな名前があり、フィクスチャを構成するファイルは、複数のアプリケーションの複数のディレク ... ます。 フィクスチャを使う フィクスチャを使えば、 テスト のためのデータを事前に投入できます。 class MyTestCase ( TestCase ): fixtures = [ "fixture-label" ] または 初期データ を loaddata コマンドを使って提供することもできます: django-admin loaddata <fixtur ... el> Djangoにフィクスチャを認識させる Django はこれらの場所でフィクスチャを探します: インストールされた各アプリケーションの fixtures ディレクトリ内 FIXTURE_DIRS 設定にリストされている任意のディレクトリ内 フィクスチャによって名前が付けられたリテラル パス内 ... す。たとえば: django-admin loaddata foo/bar/mydata.json これは、インストールされている各アプリケーションに対して <app_label>/fixtures/foo/bar/mydata.json を、 FIXTURE_DIRS 内の各ディレクトリに対して <dirname>/foo/bar/mydata.json を、そしてリテラルパス foo ...
https://man.mtool.work/django/6.1/topics/db/fixtures.html
Django 1.6.1 リリースノート 10322
Django 1.6.1 リリースノート December 12, 2013 This is Django 1.6.1, a bugfix release for Django 1.6. In addition to the bug fixes listed below, translations submitted since the 1.6 release are also included. Bug fixes Fixed BCryptSHA256Pass ... anslations where the Unicode sequence for the non-breaking space was returned verbatim (#21415). Fixed loaddata error when fixture file name contained any dots not related to file extensions (#21457) or when fixture path was relative but located in a su ...
https://man.mtool.work/django/6.1/releases/1.6.1.html
モデルに初期データを投入する 9182
モデルに初期データを投入する It's sometimes useful to prepopulate your database with hardcoded data when you're first setting up an app. You can provide initial data with migrations or fixtures. マイグレーションで初期データを投入する アプリ ... いくつかの制限 はありますが、そのデータはテストデータベースでも利用できます。 フィクスチャでデータを投入する フィクスチャ (fixture) を使ってデータを投入することもできますが、 TransactionTestCase.fixtures を使わない限り、このデータは自動的にはロードされま ... : Lennon - model : myapp.person pk : 2 fields : first_name : Paul last_name : McCartney このデータは、アプリケーション内の fixtures ディレクトリ内に保存しておくことができます。 データを読み込むには、 manage.py loaddata <fixturename> を呼び出します。ここ ... で <fixturename> は作成したフィクスチャファイルの名前です。 loaddata を実行するたびに、フィクスチャからデータが読み込まれ、データベース ...
https://man.mtool.work/django/6.1/howto/initial-data.html
モデルとデータベース 9182
モデルとデータベース モデルは、データに関する唯一かつ決定的な情報源です。あなたが保持するデータが必要とするフィールドとその動作を定義します。一般的に、各モデルは単一のデータベースのテーブルに対応付けられます。 モデル クエリを作成する Fetch ... トランザクション 複数のデータベース テーブル空間(tablespace) データベースアクセスの最適化 データベースの計測 フィクスチャ (fixture) モデルリレーションシップ API の使用例 ...
https://man.mtool.work/django/6.1/topics/db/
django-admin と manage.py 8545
django-admin と manage.py django-admin は Django の管理タスクのためのコマンドラインユーティリティです。このドキュメントでは、その機能の全体を一通り説明します。 さらに、 manage.py は各 Django プロジェクト内に自動的に作成されます。 jango-admi ... す。 --include-views このオプションを指定すると、データベースビュー用のモデルも作成されます。 loaddata django-admin loaddata fixture [fixture ...] 指定された フィクスチャ の内容を検索してデータベースにロードします。 --database DATABASE データを読み込むデー ... e=prod - dumpdata コマンドは loaddata の入力を生成するために使用できます。 参考 フィクスチャの詳細については フィクスチャ (fixture) トピックを参照してください。 makemessages django-admin makemessages 現在のディレクトリのソースツリー全体を走査し、翻訳が必 ... 力します。 --durations N 最も遅い N 個のテストケースを表示します(N=0 の場合はすべて)。 testserver django-admin testserver [fixture [fixture ...]] ( runserver のように) 与えられたフィクスチャのデータを使って Django 開発サーバを起動します。 たとえばこのコ ...
https://man.mtool.work/django/6.1/ref/django-admin.html
Django 1.3.6 リリースノート 8545
Django 1.3.6 リリースノート February 19, 2013 Django 1.3.6 fixes four security issues present in previous Django releases in the 1.3 series. This is the sixth bugfix/security release in the Django 1.3 series. Host header poisoning Some part ... er of attacks via external entities and entity expansion. Django uses this parser for deserializing XML-formatted database fixtures. The fixture deserializer is not intended for use with untrusted data, but in order to err on the side of safety in Djang ...
https://man.mtool.work/django/6.1/releases/1.3.6.html
Django 1.8.1 リリースノート 8545
Django 1.8.1 リリースノート May 1, 2015 Django 1.8.1 fixes several bugs in 1.8 and includes some optimizations in the migrations framework. バグ修正 Added support for serializing timedelta objects in migrations ( #24566 ). Restored proper p ... arsing of the testserver command's positional arguments (fixture names) ( #24571 ). Prevented TypeError in translation functions check_for_language() and get_language_bidi() when translat ...
https://man.mtool.work/django/6.1/releases/1.8.1.html
Django 1.8 リリースノート 8545
Django 1.8 リリースノート April 1, 2015 Django 1.8 へようこそ! このリリースノートでは、 バージョン 1.8 の新機能 と、Django 1.7 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... ability to set up test data at the class level. Using this technique can speed up the tests as compared to using setUp() . Fixture loading within TestCase is now performed once for the whole TestCase . マイナーな機能 django.contrib.admin ModelAdmin now ... --name allows giving the migration(s) a custom name instead of a generated one. The loaddata command now prevents repeated fixture loading. If FIXTURE_DIRS contains duplicates or a default fixture directory path ( app_name/fixtures ), an exception is ra ...
https://man.mtool.work/django/6.1/releases/1.8.html
JavaScript code 8378
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 ... example test module: QUnit . module ( 'magicTricks' , { beforeEach : function () { const $ = django . jQuery ; $ ( '#qunit-fixture' ). append ( '<button class="button"></button>' ); } }); QUnit . test ( 'removeOnClick removes button on click' , function ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/javascript...
Porting your apps from Django 0.96 to 1.0 8210
Porting your apps from Django 0.96 to 1.0 Django 1.0 breaks compatibility with 0.96 in some areas. This guide will help you port 0.96 projects and apps to 1.0. The first part of this document includes the common changes needed to run with 1 ... et_new_session_key() has been renamed to _get_new_session_key() . get_new_session_object() no longer exists. フィクスチャ (fixture) Loading a row no longer calls save() Previously, loading a row automatically ran the model's save() method. This is no lo ... ger the case, so any fields (for example: timestamps) that were auto-populated by a save() now need explicit values in any fixture. 設定 Better exceptions The old EnvironmentError has split into an ImportError when Django fails to find the settings modu ...
https://man.mtool.work/django/6.1/releases/1.0-porting-guide.html
PREV 1 2 3 NEXT