検索

phrase: max: clip:
target: order:
Results of 21 - 30 of about 177 for models (0.021 sec.)
アプリケーション — Django 4.0.6 ドキュメント 7067
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... e can't also be considered an application and have models, etc. (which would require adding it to INSTALLED_ ... jango 3.2. The implicit primary key type to add to models within this app. You can use this to keep AutoFiel ... m 'django/contrib/admin/__init__.py'> . AppConfig. models_module ¶ Module containing the models, e.g. <modul ... e 'django.contrib.admin.models' from 'django/contrib/admin/models.py'> . It may b ...
https://man.plustar.jp/django/ref/applications.html - [similar]
Django の認証方法のカスタマイズ — Django 4.0.6 ドキュメント 7023
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ers import check_password from django.contrib.auth.models import User class SettingsBackend ( BaseBackend ): ... します。注意すべき点として、関数 django.contrib.auth.models.User から関連して得られた同じ引数は、バックエンド認 ... れるユーザーオブジェクトの1つ、 django.contrib.auth.models.AnonymousUser オブジェクトは、バックエンドが匿名ユ ... できることとできないことを規定します。 class Task ( models . Model ): ... class Meta : permissions = [ ( "cha ...
https://man.plustar.jp/django/topics/auth/customizing.html - [similar]
Pythonモジュール索引 — Django 4.0.6 ドキュメント 6989
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ntenttypes Provides generic interface to installed models. django.contrib.contenttypes.admin django.contrib. ... s spatial database backends. django.contrib.gis.db.models GeoDjango model and field API. django.contrib.gis. ... db.models.functions Geographic Database Functions django.con ... gis.serializers.geojson Serialization of GeoDjango models in the GeoJSON format. django.contrib.gis.utils Ge ...
https://man.plustar.jp/django/py-modindex.html - [similar]
Signals — Django 4.0.6 ドキュメント 6933
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ork sends signals when a user is logged in / out . Model signals ¶ The django.db.models.signals module defin ... es a set of signals sent by the model system. 警告 Many of these signals are sent by vari ... =False when you call the signal's connect() . 注釈 Model signals sender model can be lazily referenced when ... ng with circular import dependencies and swappable models. pre_init ¶ django.db.models.signals. pre_init ¶ W ...
https://man.plustar.jp/django/ref/signals.html - [similar]
一対一 (one-to-one) 関係 — Django 4.0.6 ドキュメント 6933
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... onally can be a Restaurant : from django.db import models class Place ( models . Model ): name = models . Ch ... arField ( max_length = 50 ) address = models . CharField ( max_length = 80 ) def __str__ ( self ... n " %s the place" % self . name class Restaurant ( models . Model ): place = models . OneToOneField ( Place ... , on_delete = models . CASCADE , primary_key = True , ) serves_hot_dogs ...
https://man.plustar.jp/django/topics/db/examples/one_to_one.html - [similar]
How to integrate Django with a legacy database — Django 4.0.6 ドキュメント 6911
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... es with a utility called inspectdb that can create models by introspecting an existing database. You can vie ... output redirection: $ python manage.py inspectdb > models.py This feature is meant as a shortcut, not as def ... for more information. Once you've cleaned up your models, name the file models.py and put it in the Python ... S setting. By default, inspectdb creates unmanaged models. That is, managed = False in the model's Meta clas ...
https://man.plustar.jp/django/howto/legacy-databases.html - [similar]
PostgreSQL specific aggregation functions — Django 4.0.6 ドキュメント 6855
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ist. 例: 'some_field' '-some_field' from django.db.models import F F ( 'some_field' ) . desc () バージョン 4 ... , otherwise False . Usage example: class Comment ( models . Model ): body = models . TextField () published ... = models . BooleanField () rank = models . IntegerField () ... >>> from django.db.models import Q >>> from django.contrib.postgres.aggregat ...
https://man.plustar.jp/django/ref/contrib/postgres/aggregates.html - [similar]
モデルからフォームを作成する — Django 4.0.6 ドキュメント 6855
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... from django.forms import ModelForm >>> from myapp.models import Article # Create the form class. >>> class ... のモデルを考えていきましょう: from django.db import models from django.forms import ModelForm TITLE_CHOICES = ... RS' , 'Mrs.' ), ( 'MS' , 'Ms.' ), ] class Author ( models . Model ): name = models . CharField ( max_length ... = 100 ) title = models . CharField ( max_length = 3 , choices = TITLE_CHO ...
https://man.plustar.jp/django/topics/forms/modelforms.html - [similar]
How to create custom model fields — Django 4.0.6 ドキュメント 6811
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ラスの使用方法が説明されています--:class:`~django.db.models.CharField`や、:class:`~django.db.models.DateField ... ではなくモデルフィールドを意味します)は django.db.models.Field のサブクラスです。 Djangoがフィールドについて ... ら直接サブクラス化しています。 from django.db import models class HandField ( models . Field ): description = ... 取ります。例えば、 editable と auto_now は django.db.models.DateField に渡すことができますが、 editable のパラ ...
https://man.plustar.jp/django/howto/custom-model-fields.html - [similar]
クエリー式 — Django 4.0.6 ドキュメント 6722
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... s, and even other expressions. 例 ¶ from django.db.models import Count , F , Value from django.db.models.fun ... ctions import Length , Upper from django.db.models.lookups import GreaterThan # Find companies that h ... _from_db () >>> company . ticker 'GOOG' # Annotate models with an aggregated value. Both forms # below are e ... he double underscore lookup syntax. from django.db.models import CharField from django.db.models.functions i ...
https://man.plustar.jp/django/ref/models/expressions.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 12 NEXT