Results of 1 - 10 of about 177 for models (0.028 sec.)
- 索引 — Django 4.0.6 ドキュメント 9609
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
jango.contrib.gis.measure のクラス) Abs (django.db.models.functions のクラス) ABSOLUTE_URL_OVERRIDES setting ...
ango.contrib.auth.mixins のクラス) ACos (django.db.models.functions のクラス) action() (django.contrib.admin ...
jango.contrib.admin のクラス) Aggregate (django.db.models のクラス) aggregate() (django.db.models.query.Quer ...
ySet モジュール) alias() (django.db.models.query.QuerySet モジュール) all() (django.db.models ...
-
https://man.plustar.jp/django/genindex.html
- [similar]
- モデル — Django 4.0.6 ドキュメント 8762
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
基本: モデルは各々 Python のクラスであり django.db.models.Model のサブクラスです。 モデルの属性はそれぞれがデ ...
というモデルを定義しています。 from django.db import models class Person ( models . Model ): first_name = mode ...
ls . CharField ( max_length = 30 ) last_name = models . CharField ( max_length = 30 ) first_name および ...
ァイルを編集して、設定値 INSTALLED_APPS に、定義した models.py を含むモジュール名を追加します。 たとえば、アプ ...
-
https://man.plustar.jp/django/topics/db/models.html
- [similar]
- Database Functions — Django 4.0.6 ドキュメント 8706
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
model in examples of each function: class Author ( models . Model ): name = models . CharField ( max_length ...
= 50 ) age = models . PositiveIntegerField ( null = True , blank = Tru ...
e ) alias = models . CharField ( max_length = 50 , null = True , blan ...
k = True ) goes_by = models . CharField ( max_length = 50 , null = True , blan ...
-
https://man.plustar.jp/django/ref/models/database-functions.html
- [similar]
- Model _meta API — Django 4.0.6 ドキュメント 8472
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
model class, which is an instance of an django.db.models.options.Options object. Methods that it provides c ...
ption will be raised. >>> from django.contrib.auth.models import User # A field on the model >>> User . _met ...
a . get_field ( 'username' ) <django.db.models.fields.CharField: username> # A field from another ...
eclared directly on the current model. Fields from models that directly inherit from abstract models or prox ...
-
https://man.plustar.jp/django/ref/models/meta.html
- [similar]
- モデルフィールドリファレンス — Django 4.0.6 ドキュメント 8316
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ます 。 注釈 技術的には、これらのモデルは django.db.models.fields 内で定義されていまが、利便性のため django.d ...
b.models にインポートされています; 標準的な慣習では、 from ...
django.db import models を使って、フィールドを models.<Foo>Field として参照 ...
定数を定義するのがベストです: from django.db import models class Student ( models . Model ): FRESHMAN = 'FR' ...
-
https://man.plustar.jp/django/ref/models/fields.html
- [similar]
- マネージャ — Django 4.0.6 ドキュメント 8204
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ラスの Manager の名前を変えるには、そのクラスの上で models.Manager() と書いて、クラス変数を定義します。たとえ ...
ば、次のように書きます。 from django.db import models class Person ( models . Model ): #... people = mod ...
dds a method with_counts() : from django.db import models from django.db.models.functions import Coalesce cl ...
ass PollManager ( models . Manager ): def with_counts ( self ): return self ...
-
https://man.plustar.jp/django/topics/db/managers.html
- [similar]
- contenttypes フレームワーク — Django 4.0.6 ドキュメント 8048
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
contenttypes application that can track all of the models installed in your Django-powered project, providin ...
igh-level, generic interface for working with your models. オーバービュー ¶ At the heart of the contenttypes ...
model, which lives at django.contrib.contenttypes.models.ContentType . Instances of ContentType represent a ...
nd store information about the models installed in your project, and new instances of Co ...
-
https://man.plustar.jp/django/ref/contrib/contenttypes.html
- [similar]
- Django の admin サイト — Django 4.0.6 ドキュメント 7948
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
e . Finally, determine which of your application's models should be editable in the admin interface. For eac ...
h of those models, register them with the admin as described in Mode ...
dmin : from django.contrib import admin from myapp.models import Author class AuthorAdmin ( admin . ModelAdm ...
きます。 from django.contrib import admin from myapp.models import Author admin . site . register ( Author ) r ...
-
https://man.plustar.jp/django/ref/contrib/admin/index.html
- [similar]
- django.apps.config — Django 4.0.6 ドキュメント 7915
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
g , module_has_submodule APPS_MODULE_NAME = "apps" MODELS_MODULE_NAME = "models" [ドキュメント] class AppCon ...
ath_from_module ( app_module ) # Module containing models e.g. <module 'django.contrib.admin.models' # from ...
'django/contrib/admin/models.py'>. Set by import_models(). # None if the applic ...
ation doesn't have a models module. self . models_module = None # Mapping of l ...
-
https://man.plustar.jp/django/_modules/django/apps/config.html
- [similar]
- The "sites" framework — Django 4.0.6 ドキュメント 7892
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
tes framework is mainly based on this model: class models. Site ¶ A model for storing the domain and name at ...
ld in the Article model: from django.contrib.sites.models import Site from django.db import models class Art ...
icle ( models . Model ): headline = models . CharField ( max_len ...
gth = 200 ) # ... sites = models . ManyToManyField ( Site ) This accomplishes sever ...
-
https://man.plustar.jp/django/ref/contrib/sites.html
- [similar]