検索

phrase: max: clip:
target: order:
Results of 61 - 70 of about 177 for models (0.101 sec.)
Django 1.5 release notes — Django 4.0.6 ドキュメント 5752
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... relies upon. See the documentation on custom user models for more details. Support for saving a subset of m ... reviously loaded. For example, with the tutorial's models: >>> first_poll = Poll . objects . all ()[ 0 ] >>> ... val of ContentType instances associated with proxy models ¶ The methods ContentTypeManager.get_for_model() a ... nd ContentTypeManager.get_for_models() have a new keyword argument – respectively for_c ...
https://man.plustar.jp/django/releases/1.5.html - [similar]
Conditional Expressions — Django 4.0.6 ドキュメント 5718
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... in the subsequent examples: from django.db import models class Client ( models . Model ): REGULAR = 'R' GOL ... LD , 'Gold' ), ( PLATINUM , 'Platinum' ), ] name = models . CharField ( max_length = 50 ) registered_on = mo ... dels . DateField () account_type = models . CharField ( max_length = 1 , choices = ACCOUNT_T ... sions was added. Some examples: >>> from django.db.models import F , Q , When >>> # String arguments refer t ...
https://man.plustar.jp/django/ref/models/conditional-expressions.html - [similar]
Django 1.0 リリースノート — Django 4.0.6 ドキュメント 5696
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... el definitions (no more class Admin declaration in models!), rewritten to use Django's new form-handling lib ... e forcing one or the other is useful. As a result, models can now support an additional parameter to save() ... model inheritance , be aware of this caveat: child models using a custom parent_link and to_field will cause ... database integrity errors. A set of models like the following are not valid : class Parent ( ...
https://man.plustar.jp/django/releases/1.0.html - [similar]
Related objects reference — Django 4.0.6 ドキュメント 5674
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... oreignKey relation. That is: from django.db import models class Blog ( models . Model ): # ... pass class En ... try ( models . Model ): blog = models . ForeignKey ( Blog , on_ ... delete = models . CASCADE , null = True ) In the above example, th ... des of a ManyToManyField relation: class Topping ( models . Model ): # ... pass class Pizza ( models . Model ...
https://man.plustar.jp/django/ref/models/relations.html - [similar]
Django 3.1 release notes — Django 4.0.6 ドキュメント 5640
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... supported database backends ¶ Django now includes models.JSONField and forms.JSONField that can be used on ... previously PostgreSQL-only: from django.db import models class ContactInfo ( models . Model ): data = model ... eased to 150 ¶ A migration for django.contrib.auth.models.User.first_name is included. If you have a custom ... th.admin import UserAdmin from django.contrib.auth.models import User class MyUserAdmin ( UserAdmin ): form ...
https://man.plustar.jp/django/releases/3.1.html - [similar]
Django 1.6 release notes — Django 4.0.6 ドキュメント 5596
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... le.DjangoTestSuiteRunner ) found tests only in the models.py and tests.py modules of a Python package in INS ... ations . BinaryField model field ¶ A new django.db.models.BinaryField model field allows storage of raw bina ... LL . In such cases it is possible to set django.db.models.Options.select_on_save flag to force saving to use ... te for FormView based classes. Added the django.db.models.ForeignKey.db_constraint and django.db.models.Many ...
https://man.plustar.jp/django/releases/1.6.html - [similar]
Generic date ビュー — Django 4.0.6 ドキュメント 5540
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ビューです。 注釈 このページの例のいくつかは、 myapp/models.py 内で下記の通り Article モデルが定義されていると ... 仮定します: from django.db import models from django.urls import reverse class Article ( mo ... dels . Model ): title = models . CharField ( max_length = 200 ) pub_date = models ... s.generic.dates import ArchiveIndexView from myapp.models import Article urlpatterns = [ path ( 'archive/' , ...
https://man.plustar.jp/django/ref/class-based-views/generic-date-based.html - [similar]
LayerMapping data import utility — Django 4.0.6 ドキュメント 5507
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... patial data files (e.g. shapefiles) into GeoDjango models. This utility grew out of the author's personal ne ... o use migrate ): from django.contrib.gis.db import models class TestGeo ( models . Model ): name = models . ... gth = 25 ) # corresponds to the 'str' field poly = models . PolygonField ( srid = 4269 ) # we want our model ... trib.gis.utils import LayerMapping >>> from geoapp.models import TestGeo >>> mapping = { 'name' : 'str' , # ...
https://man.plustar.jp/django/ref/contrib/gis/layermapping.html - [similar]
マイグレーション操作 — Django 4.0.6 ドキュメント 5507
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ータベース上に対応するテーブルを作成します。 name は models.py ファイルに定義されているであろうモデルの名称です ... ないフィールド(他のモデルから取得した物でなく、単に models.CharField(...) 等と記述する物)でなければいけません ... plied, it defaults to inheriting from the standard models.Model . managers は (マネージャ名, マネージャのイン ... he thing you would put in the field declaration in models.py - for example, models.IntegerField(null=True) . ...
https://man.plustar.jp/django/ref/migration-operations.html - [similar]
GeoDjango — Django 4.0.6 ドキュメント 5484
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ial はじめに Setting Up Geographic Data Geographic Models Importing Spatial Data Spatial Queries Putting you ... Database API Spatial Backends Creating and Saving Models with Geometry Fields Creating and Saving Models wi ... metry , Geographic , カスタマイズ , Data , Field , Models クイック検索 Last update: 2022年6月01日 « previous ...
https://man.plustar.jp/django/ref/contrib/gis/index.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 NEXT