Results of 111 - 120 of about 177 for models (0.105 sec.)
- The syndication feed framework — Django 4.0.6 ドキュメント 4793
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ed from django.urls import reverse from policebeat.models import NewsItem class LatestEntriesFeed ( Feed ): ...
w bits of functionality "for free" by using Django models, items() can return any type of object you want. I ...
in items() ). {{ site }} -- A django.contrib.sites.models.Site object representing the current site. This is ...
od in your Feed subclass. For example: from mysite.models import Article from django.contrib.syndication.vie ...
-
https://man.plustar.jp/django/ref/contrib/syndication.html
- [similar]
- 設定 — Django 4.0.6 ドキュメント 4793
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
TO_FIELD ¶ New in Django 3.2. Default: ' django.db.models.AutoField ' Default primary key field type to use ...
for models that don't have a field with primary_key=True . Mi ...
nerate migrations, the primary keys of the related models will be updated, as will the foreign keys from the ...
meta.db_table property. Explicitly defined through models are already handled by the migrations system. Allo ...
-
https://man.plustar.jp/django/ref/settings.html
- [similar]
- Django 1.9.3 リリースノート — Django 4.0.6 ドキュメント 4793
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
sername instead of username to support custom user models ( #26231 ). Fixed a crash when passing a nonexiste ...
ed relative lazy relationships defined on abstract models to be resolved according to their concrete model's ...
-
https://man.plustar.jp/django/releases/1.9.3.html
- [similar]
- Full text search — Django 4.0.6 ドキュメント 4771
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
. For the examples in this document, we'll use the models defined in クエリを作成する . 参考 For a high-leve ...
can combine multiple behaviors: >>> from django.db.models import Value >>> Entry . objects . annotate ( ... ...
so be stored in another column: >>> from django.db.models import F >>> Entry . objects . annotate ( ... sear ...
-
https://man.plustar.jp/django/ref/contrib/postgres/search.html
- [similar]
- バリデータ — Django 4.0.6 ドキュメント 4771
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
通じて設定することができます: from django.db import models class MyModel ( models . Model ): even_field = mod ...
-
https://man.plustar.jp/django/ref/validators.html
- [similar]
- Django 3.0 リリースノート — Django 4.0.6 ドキュメント 4771
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
n of GROUP BY clauses to require only the selected models' primary keys. By default, it's supported only for ...
managed models on PostgreSQL. To enable the GROUP BY primary key- ...
only optimization for unmanaged models, you have to subclass the PostgreSQL database engi ...
now includes the model's app_label to disambiguate models with the same name in different apps. Because acce ...
-
https://man.plustar.jp/django/releases/3.0.html
- [similar]
- Django でのユーザー認証 — Django 4.0.6 ドキュメント 4771
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
tes the necessary database tables for auth related models and permissions for any models defined in your ins ...
-
https://man.plustar.jp/django/topics/auth/index.html
- [similar]
- クラスベースのビューでミックスインを使用する — Django 4.0.6 ドキュメント 4771
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
generic.detail import SingleObjectMixin from books.models import Author class RecordInterestView ( SingleObj ...
generic.detail import SingleObjectMixin from books.models import Publisher class PublisherDetailView ( Singl ...
ngo.views.generic.edit import FormMixin from books.models import Author class AuthorInterestForm ( forms . F ...
django.views.generic import DetailView from books.models import Author class AuthorInterestForm ( forms . F ...
-
https://man.plustar.jp/django/topics/class-based-views/mixins.html
- [similar]
- ページネーション — Django 4.0.6 ドキュメント 4771
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
om django.views.generic import ListView from myapp.models import Contact class ContactListView ( ListView ): ...
tor from django.shortcuts import render from myapp.models import Contact def listing ( request ): contact_li ...
-
https://man.plustar.jp/django/topics/pagination.html
- [similar]
- はじめての Django アプリ作成、その 5 — Django 4.0.6 ドキュメント 4749
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
> from django.utils import timezone >>> from polls.models import Question >>> # create a Question instance w ...
t TestCase from django.utils import timezone from .models import Question class QuestionModelTests ( TestCas ...
逃している可能性があります。そのステップでは、 polls/models.py に datetime と timezone のインポートを追加しまし ...
には False を返さなければならない、ということです。 models.py にあるメソッドを修正して、日付が過去だった場合に ...
-
https://man.plustar.jp/django/intro/tutorial05.html
- [similar]