per page, with , order by , clip by
Results of 1 - 10 of about 25 for fixtures (0.010 sec.)
モデルに初期データを投入する 14496
モデルに初期データを投入する 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 を使わない限り、このデータは自動的にはロードされません。 フィクスチャは、Djangoがデータベースにインポートする方法を知ってい ... : Lennon - model : myapp.person pk : 2 fields : first_name : Paul last_name : McCartney このデータは、アプリケーション内の fixtures ディレクトリ内に保存しておくことができます。 データを読み込むには、 manage.py loaddata <fixturename> を呼び出します。ここで ... 更が元に戻ってしまうことを意味します。 フィクスチャファイルを探す場所を Django に教える デフォルトでは、Djangoは各アプリ内の fixtures ディレクトリでフィクスチャを探すため、 loaddata sample コマンドで my_app/fixtures/sample.json ファイルを見つけられます。相 ...
https://man.mtool.work/django/6.1/howto/initial-data.html
Django 1.4 リリースノート 10677
Django 1.4 リリースノート March 23, 2012 Django 1.4 へようこそ! These release notes cover the new features , as well as some backwards incompatible changes you'll want to be aware of when upgrading from Django 1.3 or older versions. We've a ... -clear option to delete all files at the destination before copying or linking the static files. It's now possible to load fixtures containing forward references when using MySQL with the InnoDB database engine. A new 403 response handler has been added ... Time zone information is included in the [+-]HH:MM format. Though the serializers now use these new formats when creating fixtures, they can still load fixtures that use the old format. supports_timezone changed to False for SQLite The database feature ... comes from an untrusted source. This feature isn't necessary for Django's YAML deserializer, whose primary use is to load fixtures consisting of simple objects. Even though fixtures are trusted data, the YAML deserializer now uses yaml.safe_load for add ...
https://man.mtool.work/django/6.1/releases/1.4.html
フィクスチャ (fixture) 10677
フィクスチャ (fixture) フィクスチャ (fixture) とは、シリアライズされたデータベースのコンテンツを含むファイルのコレクションです。各フィクスチャにはユニークな名前があり、フィクスチャを構成するファイルは、複数のアプリケーションの複数のディレク ... ます。 フィクスチャを使う フィクスチャを使えば、 テスト のためのデータを事前に投入できます。 class MyTestCase ( TestCase ): fixtures = [ "fixture-label" ] または 初期データ を loaddata コマンドを使って提供することもできます: django-admin loaddata <fixture ... 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 3.0.2 リリースノート 9464
Django 3.0.2 リリースノート 2020年1月2日 Django 3.0.2 では、3.0.1 にあったいくつかのバグを修正しました。 バグ修正 Fixed a regression in Django 3.0 that didn't include columns referenced by a Subquery() in the GROUP BY clause ( #31094 ). Fix ... en adding a foreign key and changing data in the same migration ( #31106 ). Fixed a regression in Django 3.0 where loading fixtures crashed for models defining a default for the primary key ( #31071 ). ...
https://man.mtool.work/django/6.1/releases/3.0.2.html
テストツール 9265
テストツール Django は、テストを書くのに便利なツールをいくつか提供しています。 There are community-maintained solutions! Django has a vibrant ecosystem. There are testing and fixtures solutions highlighted on the Community Ecosystem page. T ... 。 各テストの終了時にデータベースを既知の状態にリセットすることで、テストの実施や ORM の利用を容易にします。 データベースの fixtures 。 テストの データベースバックエンドの機能をもとにしたスキップ 。 それ以外の特別な assert* メソッド。 Django's TestCase cl ... y import By from selenium.webdriver.firefox.webdriver import WebDriver class MySeleniumTests ( StaticLiveServerTestCase ): fixtures = [ "user-data.json" ] @classmethod def setUpClass ( cls ): super () . setUpClass () cls . selenium = WebDriver () cls . s ... chronous test client by subclassing AsyncClient and setting async_client_class . フィクスチャのロード TransactionTestCase. fixtures データベースを利用したウェブサイト向けのテストケースクラスは、データベースにデータが何もなければあまり役に立ちません。 Tes ...
https://man.mtool.work/django/6.1/topics/testing/tools.html
Django 1.7 リリースノート 8651
Django 1.7 リリースノート September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した ... hod name is deprecated and you should change it as soon as possible (nothing more than renaming is required). initial_data fixtures are no longer loaded for apps with migrations; if you want to load initial data for an app, we suggest you create a migrat ... are only referring to fields or other items in model._meta . initial_data Apps with migrations will not load initial_data fixtures when they have finished migrating. Apps without migrations will continue to load these fixtures during the phase of migrat ... mmit=False) is called. See can_delete for instructions on how to manually delete objects from deleted forms. Loading empty fixtures emits a RuntimeWarning rather than raising CommandError . django.contrib.staticfiles.views.serve() will now raise an Http4 ...
https://man.mtool.work/django/6.1/releases/1.7.html
Django 1.8.8 リリースノート 8651
Django 1.8.8 リリースノート January 2, 2016 Django 1.8.8 fixes several bugs in 1.8.7. Python 3.2 users, please be advised that we've decided to drop support for Python 3.2 in Django 1.8.x at the end of 2016. We won't break things intentiona ... onverting them to <br> ( #25465 ). Made loaddata skip disabling and enabling database constraints when it doesn't load any fixtures ( #23372 ). Fixed a crash in QuerySet.values()/values_list() after an annotate() and order_by() when values()/values_list( ...
https://man.mtool.work/django/6.1/releases/1.8.8.html
Django 1.3.6 リリースノート 8452
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 Django ...
https://man.mtool.work/django/6.1/releases/1.3.6.html
Django 1.4.4 リリースノート 8452
Django 1.4.4 リリースノート February 19, 2013 Django 1.4.4 fixes four security issues present in previous Django releases in the 1.4 series, as well as several other bugs and numerous documentation improvements. This is the fourth bugfix/se ... er of attacks via external entities and entity expansion. Django uses this parser for deserializing XML-formatted database fixtures. This deserializer is not intended for use with untrusted data, but in order to err on the side of safety in Django 1.4.4 ...
https://man.mtool.work/django/6.1/releases/1.4.4.html
Django 1.9.1 リリースノート 8452
Django 1.9.1 リリースノート January 2, 2016 Django 1.9.1 では、1.9 にあったいくつかのバグを修正しました。 バグ修正 Fixed BaseCache.get_or_set() with the DummyCache backend ( #25840 ). Fixed a regression in FormMixin causing forms to be vali ... _context_object_name() ( #26006 ). Made loaddata skip disabling and enabling database constraints when it doesn't load any fixtures ( #23372 ). Restored contrib.auth hashers compatibility with py-bcrypt ( #26016 ). Fixed a crash in QuerySet.values()/valu ...
https://man.mtool.work/django/6.1/releases/1.9.1.html
PREV 1 2 3 NEXT