per page, with , order by , clip by
Results of 1 - 6 of about 6 for Company (0.005 sec.)
クエリ式 (Query Expression) 13179
クエリ式 (Query Expression) クエリ式 (query expression) は、update、create、filter、order by、annotation、またはaggregateの一部として使用できる値または計算を記述します。式が真偽値を出力する場合、フィルタで直接使用できます。クエリの記述に使用 ... th , Upper >>> from django.db.models.lookups import GreaterThan # Find companies that have more employees than chairs. >>> Company . objects . filter ( num_employees__gt = F ( "num_chairs" )) # Find companies that have at least twice as many employees # ... as chairs. Both the querysets below are equivalent. >>> Company . objects . filter ( num_employees__gt = F ( "num_chairs" ) * 2 ) >>> Company . objects . filter ( num_employees__gt = F ( ... "num_chairs" ) + F ( "num_chairs" )) # How many chairs are needed for each company to seat all employees? >>> company = ( ... Company . objects . filter ( num_employees__gt = F ( "num_chairs" )) ... . anno ...
https://man.mtool.work/django/6.1/ref/models/expressions.html
ModelAdmin リストフィルタ 8828
ModelAdmin リストフィルタ ModelAdmin クラスは、以下のスクリーンショットのように、admin アプリケーションの変更一覧ページの右サイドバーに表示されるリストフィルタを定義できます: フィールドごとのフィルタリングを有効にするには、 ModelAdmin.list_ ... たは ManyToManyField のいずれかでなければなりません: class PersonAdmin ( admin . ModelAdmin ): list_filter = [ "is_staff" , "company" ] list_filter 内のフィールド名は __ ルックアップを使って関係先を参照できます。たとえば、次のように参照できます。 class Pe ... rsonAdmin ( admin . UserAdmin ): list_filter = [ "company__name" ] SimpleListFilter を使用する フィルタリングをカスタマイズするには、 django.contrib.admin.SimpleListFilter をサブク ...
https://man.mtool.work/django/6.1/ref/contrib/admin/filters.html
テンプレート 8408
テンプレート Django はウェブフレームワークなので、HTML を動的に生成する便利な手段が必要でした。最も一般的なアプローチは、テンプレートに頼ることです。テンプレートには、出力したい HTML を書いた静的な部分と、動的なコンテンツを挿入する方法を書い ... nt' に設定できます。 そして、Jinja2 テンプレートで以下の構文を使用できるようになります: < img src = " {{ static ( 'path/to/company-logo.png' ) }} " alt = "Company Logo" > < a href = " {{ url ( 'admin:index' ) }} " > Administration </ a > タグとフィルタの ...
https://man.mtool.work/django/6.1/topics/templates.html
Django 1.4 リリースノート 8152
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 ... ass attribute. A new django.test.SimpleTestCase subclass of unittest.TestCase that's lighter than django.test.TestCase and company. It can be useful in tests that don't need to hit a database. See Django ユニットテストクラスの階層 . Backwards incompatib ...
https://man.mtool.work/django/6.1/releases/1.4.html
メールを送信する 8152
メールを送信する Django provides wrappers for Python's email and smtplib modules to simplify composing and sending email. Django's email framework also supports swapping in different delivery mechanisms: you can direct email to the console ... ses Email addresses allow a "friendly" display name alongside the user@domain address. For example, you could include your company name in the DEFAULT_FROM_EMAIL setting: DEFAULT_FROM_EMAIL = '"Example, Inc." <contact@example.com>' The double quotes aro ...
https://man.mtool.work/django/6.1/topics/email.html
モデル 8061
モデル モデルは、データに関する唯一かつ決定的な情報源です。あなたが保持するデータが必要とするフィールドとその動作を定義します。一般的に、各モデルは単一のデータベースのテーブルに対応付けられます。 基本: モデルは各々 Python のクラスであり dja ... なフィールドでも呼び出すことができます。例えば、以下のようなフィールド名にすることも可能です。 class Car ( models . Model ): company_that_makes_it = models . ForeignKey ( Manufacturer , on_delete = models . CASCADE , ) # ... 参考 ForeignKey フィールドは多 ...
https://man.mtool.work/django/6.1/topics/db/models.html
PREV 1 NEXT