検索

phrase: max: clip:
target: order:
Results of 41 - 50 of about 177 for models (0.156 sec.)
モデルインスタンスリファレンス — Django 4.0.6 ドキュメント 6354
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... は、 database query guide で提供された example blog models を使用します。 オブジェクトを作成する ¶ To create ... スにクラスメソッドを追加する: from django.db import models class Book ( models . Model ): title = models . Ch ... 加する (通常推奨される方法です): class BookManager ( models . Manager ): def create_book ( self , title ): boo ... o something with the book return book class Book ( models . Model ): title = models . CharField ( max_length ...
https://man.plustar.jp/django/ref/models/instances.html - [similar]
The Django admin documentation generator — Django 4.0.6 ドキュメント 6332
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ocs app pulls documentation from the docstrings of models, views, template tags, and template filters for an ... late:`path/to/template.html` Model reference ¶ The models section of the admindocs page describes each model ... nd methods available on it. Relationships to other models appear as hyperlinks. Descriptions are pulled from ... umentation might look like this: class BlogEntry ( models . Model ): """ Stores a single blog entry, related ...
https://man.plustar.jp/django/ref/contrib/admin/admindocs.html - [similar]
Django 1.8 リリースノート — Django 4.0.6 ドキュメント 6276
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ta --ignorenonexistent option now ignores data for models that no longer exist. runserver now uses daemon th ... robably data migrations ) for applications without models. Migrations can now serialize model managers as pa ... rt of the model state. A generic mechanism to handle the deprecatio ... ame for all relational fields of a model. Pickling models and querysets across different versions of Django ...
https://man.plustar.jp/django/releases/1.8.html - [similar]
GeoDjango Database API — Django 4.0.6 ドキュメント 6064
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... implemented for raster fields. Creating and Saving Models with Geometry Fields ¶ Here is an example of how t ... ect (assuming the Zipcode model): >>> from zipcode.models import Zipcode >>> z = Zipcode ( code = 77096 , po ... eometry objects may also be used to save geometric models: >>> from django.contrib.gis.geos import GEOSGeome ... , refer to the GEOS tutorial . Creating and Saving Models with Raster Fields ¶ When creating raster models, ...
https://man.plustar.jp/django/ref/contrib/gis/db-api.html - [similar]
Django 1.4 documentation 6042
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ーマの問題を解決してきた実績があります。 mysite/news/models.py ファイル内に保存されるような、簡単な例を示しまし ... ょう: class Reporter ( models . Model ): full_name = models . CharField ( max_le ... ( self ): return self . full_name class Article ( models . Model ): pub_date = models . DateTimeField () he ... adline = models . CharField ( max_length = 200 ) content = models ...
https://man.plustar.jp/django/contents.html - [similar]
How to create database migrations — Django 4.0.6 ドキュメント 6042
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... dField to AlterField , and add imports of uuid and models . For example: 0006_remove_uuid_null.py ¶ # Genera ... YYY-MM-DD HH:MM from django.db import migrations , models import uuid class Migration ( migrations . Migrati ... ( model_name = 'mymodel' , name = 'uuid' , field = models . UUIDField ( default = uuid . uuid4 , unique = Tr ... ( model_name = 'mymodel' , name = 'uuid' , field = models . UUIDField ( default = uuid . uuid4 , unique = Tr ...
https://man.plustar.jp/django/howto/writing-migrations.html - [similar]
はじめての Django アプリ作成、その2 — Django 4.0.6 ドキュメント 6042
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... した概念を簡単な Python クラスで表現できます。 polls/models.py ファイルを以下のように編集してください: polls/m ... odels.py ¶ from django.db import models class Question ( models . Model ): question_text = ... models . CharField ( max_length = 200 ) pub_date = models ... DateTimeField ( 'date published' ) class Choice ( models . Model ): question = models . ForeignKey ( Questi ...
https://man.plustar.jp/django/intro/tutorial02.html - [similar]
Django 3.2 release notes — Django 4.0.6 ドキュメント 6042
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... e. No more needing to override primary keys in all models. Maintaining the historical behavior, the default ... ELD to AutoField : DEFAULT_AUTO_FIELD = 'django.db.models.AutoField' or configure it on a per-app basis: fro ... fig ( AppConfig ): default_auto_field = 'django.db.models.AutoField' name = 'my_app' or on a per-model basis ... : from django.db import models class MyModel ( models . Model ): id = models . Au ...
https://man.plustar.jp/django/releases/3.2.html - [similar]
Unit tests — Django 4.0.6 ドキュメント 6008
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... s registry and prevent unnecessary table creation, models defined in a test method should be bound to a temp ... go.apps.registry import Apps from django.db import models from django.test import SimpleTestCase class TestM ... st_apps = Apps ([ 'app_label' ]) class TestModel ( models . Model ): class Meta : apps = test_apps ... djang ... orator. It's used like this: from django.db import models from django.test import SimpleTestCase from django ...
https://man.plustar.jp/django/internals/contributing/writing-code/unit-tests.htm... - [similar]
多対一 (many-to-one) 関係 — Django 4.0.6 ドキュメント 6008
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... lationship, use ForeignKey : from django.db import models class Reporter ( models . Model ): first_name = mo ... dels . CharField ( max_length = 30 ) last_name = models . CharField ( max_length = 30 ) email = models . E ... . first_name , self . last_name ) class Article ( models . Model ): headline = models . CharField ( max_len ... gth = 100 ) pub_date = models . DateField () reporter = models . ForeignKey ( Re ...
https://man.plustar.jp/django/topics/db/examples/many_to_one.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 12 13 14 NEXT