Results of 11 - 20 of about 27 for Article (0.044 sec.)
- Admin actions — Django 4.0.6 ドキュメント 7949
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ing of a model. Imagine a news application with an Article model: from django.db import models STATUS_CHOICES ...
p' , 'Published' ), ( 'w' , 'Withdrawn' ), ] class Article ( models . Model ): title = models . CharField ( m ...
ght perform with a model like this is to update an article's status from "draft" to "published". We could eas ...
ily do this in the admin one article at a time, but if we wanted to bulk-publish a grou ...
-
https://man.plustar.jp/django/ref/contrib/admin/actions.html
- [similar]
- PostgreSQL specific database functions — Django 4.0.6 ドキュメント 7899
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
o.contrib.postgres.functions import RandomUUID >>> Article . objects . update ( uuid = RandomUUID ()) Transac ...
ntrib.postgres.functions import TransactionNow >>> Article . objects . filter ( published__lte = TransactionN ...
ow ()) <QuerySet [<Article: How to Django>]> 目次 PostgreSQL specific databas ...
-
https://man.plustar.jp/django/ref/contrib/postgres/functions.html
- [similar]
- django.urls functions for use in URLconfs — Django 4.0.6 ドキュメント 7472
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
sername>/' , views . bio , name = 'bio' ), path ( 'articles/<slug:title>/' , views . article , name = 'articl ...
e-detail' ), path ( 'articles/<slug:title>/<int:section>/' , views . section , ...
name = 'article-section' ), path ( 'blog/' , include ( 'blog.urls' ...
-
https://man.plustar.jp/django/ref/urls.html
- [similar]
- モデルインスタンスリファレンス — Django 4.0.6 ドキュメント 7291
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
jango.core.exceptions import ValidationError try : article . full_clean () except ValidationError as e : # Do ...
o.utils.translation import gettext_lazy as _ class Article ( models . Model ): ... def clean ( self ): # Don' ...
ns import NON_FIELD_ERRORS , ValidationError try : article . full_clean () except ValidationError as e : non_ ...
pub_date フィールドにエラーをアサインします: class Article ( models . Model ): ... def clean ( self ): # Don' ...
-
https://man.plustar.jp/django/ref/models/instances.html
- [similar]
- モデル — Django 4.0.6 ドキュメント 7274
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
モデル内で明示的に AutoField を利用できます。 class Article ( models . Model ): article_id = models . AutoFiel ...
primary_key = True ) ... class BookReview ( Book , Article ): pass Or use a common ancestor to hold the AutoF ...
child: class Piece ( models . Model ): pass class Article ( Piece ): article_piece = models . OneToOneField ...
parent_link = True ) ... class BookReview ( Book , Article ): pass フィールド名の "隠ぺい" は許可されない ¶ 通 ...
-
https://man.plustar.jp/django/topics/db/models.html
- [similar]
- Multiple object mixins — Django 4.0.6 ドキュメント 7241
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
り、接尾語として '_list' が付記されます。たとえば、 Article モデルなら article_list という名前のコンテキストオ ...
-
https://man.plustar.jp/django/ref/class-based-views/mixins-multiple-object.html
- [similar]
- Single object mixins — Django 4.0.6 ドキュメント 7241
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ルの model_name から組み立てられます。例えば、モデル Article のコンテクストオブジェクトは 'article' と名付けられ ...
-
https://man.plustar.jp/django/ref/class-based-views/mixins-single-object.html
- [similar]
- URL ディスパッチャ — Django 4.0.6 ドキュメント 7241
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
t path from . import views urlpatterns = [ path ( 'articles/2003/' , views . special_case_2003 ), path ( 'art ...
les/<int:year>/' , views . year_archive ), path ( 'articles/<int:year>/<int:month>/' , views . month_archive ...
), path ( 'articles/<int:year>/<int:month>/<slug:slug>/' , views . ar ...
ash, because every URL has that. For example, it's articles , not /articles . Example requests: A request to ...
-
https://man.plustar.jp/django/topics/http/urls.html
- [similar]
- 国際化とローカル化 — Django 4.0.6 ドキュメント 7142
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
くは、 W3C Web Internationalization FAQ 、 Wikipedia article 、 GNU gettext documentation をご覧ください。 警告 ...
-
https://man.plustar.jp/django/topics/i18n/index.html
- [similar]
- Porting your apps from Django 0.96 to 1.0 — Django 4.0.6 ドキュメント 7109
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
rence to datetime.datetime.now : Old (0.96): class Article ( models . Model ): title = models . CharField ( m ...
lt = LazyDate ()) New (1.0): import datetime class Article ( models . Model ): title = models . CharField ( m ...
-
https://man.plustar.jp/django/releases/1.0-porting-guide.html
- [similar]