per page, with , order by , clip by
Results of 1 - 7 of about 7 for sample (0.005 sec.)
モデルに初期データを投入する 12977
モデルに初期データを投入する 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. マイグレーションで初期データを投入する アプリ ... ルを探す場所を Django に教える デフォルトでは、Djangoは各アプリ内の fixtures ディレクトリでフィクスチャを探すため、 loaddata sample コマンドで my_app/fixtures/sample.json ファイルを見つけられます。相対パスも使用できるため、 loaddata my_app/sample とすると ... my_app/fixtures/my_app/sample.json ファイルを見つけられます。 Django は FIXTURE_DIRS 設定で指定されたディレクトリのリストからもフィクスチャを探します。 ... デフォルトの検索を完全に無効にするには、フィクスチャファイルの場所を絶対パスで指定します。例えば、 loaddata /path/to/sample のようにします。 フィクスチャファイルの名前空間を指定する Django は、名前が一致するフィクスチャファイルを最初に見つけると、 ...
https://man.mtool.work/django/6.1/howto/initial-data.html
コンテンツセキュリティポリシー 9978
コンテンツセキュリティポリシー New in Django 6.0. Content Security Policy (CSP) is a web security standard that helps prevent content injection attacks by restricting the sources from which content can be loaded. It plays an important role ... tants for common CSP source expressions. NONE Represents 'none' . Blocks loading resources for the given directive. REPORT_SAMPLE Represents 'report-sample' . Instructs the browser to include a sample of the violating code in reports. Note that this ma ...
https://man.mtool.work/django/6.1/ref/csp.html
PostgreSQL 固有の集計関数 9451
PostgreSQL 固有の集計関数 これらの機能は、 django.contrib.postgres.aggregates モジュールから利用可能です。これらについての詳細は、 PostgreSQLドキュメント に記載されています。 注釈 すべての関数はデフォルトのエイリアスを持たないので、明示的に ... , default = None ) 相関係数を float で返すか、マッチする行がない場合は default で返す。 CovarPop class CovarPop ( y , x , sample = False , filter = None , default = None ) 母集団の共分散を float で返すか、マッチする行がない場合は default で返す。 samp ... le オプション。デフォルトでは CovarPop は一般母集団の共分散を返す。ただし、 sample=True の場合、戻り値はサンプル母集団の共分散になる。 RegrAvgX class RegrAvgX ( y , x , filter = None , default = None ) 独立 ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/aggregates.html
Django 1.3 リリースノート 8215
Django 1.3 リリースノート March 23, 2011 Django 1.3 へようこそ! Nearly a year in the making, Django 1.3 includes quite a few new features and plenty of bug fixes and improvements to existing features. These release notes cover the new featu ... of the first argument consistent with the handling of all other variables. So, an existing template that contains: {% url sample %} should be replaced with: {% load url from future %} {% url 'sample' %} The tags implementing the old behavior have been ...
https://man.mtool.work/django/6.1/releases/1.3.html
Unit tests 7688
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 ... s requires a Django settings module that defines the databases to use. To help you get started, Django provides and uses a sample settings module that uses the SQLite database. See Using another settings module to learn how to use a different settings ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/unit-tests...
フォームとフィールドのバリデーション 7688
フォームとフィールドのバリデーション フォームのバリデーションは、データがクリーニング (clean) されるときに実行されます。このプロセスをカスタムしたい場合は、様々な箇所に変更を加えることができ、それぞれが違う目的を持っています。クリーニング方 ... u and your designers to work out what works effectively in your particular situation. Our new code (replacing the previous sample) looks like this: from django import forms class ContactForm ( forms . Form ): # Everything as before. ... def clean ( sel ...
https://man.mtool.work/django/6.1/ref/forms/validation.html
Django 1.2 リリースノート 7524
Django 1.2 リリースノート 2010 年 5 月 17 日 Django 1.2 へようこそ! Nearly a year in the making, Django 1.2 packs an impressive list of new features and lots of bug fixes. These release notes cover the new features, as well as important cha ... th the name 'default' describing the default database connection. The setting names have also been shortened. The previous sample settings would now look like this: DATABASES = { "default" : { "NAME" : "test_db" , "ENGINE" : "django.db.backends.postgre ...
https://man.mtool.work/django/6.1/releases/1.2.html
PREV 1 NEXT