検索

phrase: max: clip:
target: order:
Results of 131 - 140 of about 231 for import (0.039 sec.)
データベースのトランザクション — Django 4.0.6 ドキュメント 4667
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... めに ATOMIC_REQUESTS を無効化します。 from django.db import transaction @transaction . non_atomic_requests def ... は、 decorator として使用することも: from django.db import transaction @transaction . atomic def viewfunc ( r ... nager として使用することも可能です: from django.db import transaction def viewfunc ( request ): # This code ... ity error を自然な形で処理できます: from django.db import IntegrityError , transaction @transaction . atomic ...
https://man.plustar.jp/django/topics/db/transactions.html - [similar]
How to create custom model fields — Django 4.0.6 ドキュメント 4637
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ld から直接サブクラス化しています。 from django.db import models class HandField ( models . Field ): descrip ... ためにキーワード引数から削除できます: from django.db import models class HandField ( models . Field ): def __i ... は、 kwargs から値を省略してください: from django.db import models class CommaSepField ( models . Field ): "Im ... ment the db_type() method, like so: from django.db import models class MytypeField ( models . Field ): def d ...
https://man.plustar.jp/django/howto/custom-model-fields.html - [similar]
PostgreSQL specific database functions — Django 4.0.6 ドキュメント 4637
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... xample: >>> from django.contrib.postgres.functions import RandomUUID >>> Article . objects . update ( uuid = ... xample: >>> from django.contrib.postgres.functions import TransactionNow >>> Article . objects . filter ( pu ...
https://man.plustar.jp/django/ref/contrib/postgres/functions.html - [similar]
Django 1.9 リリースノート — Django 4.0.6 ドキュメント 4637
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... .contrib.auth.base_user module so that they can be imported without including django.contrib.auth in INSTALL ... hem into naive datetimes in UTC: from django.utils import timezone param = timezone . make_naive ( param , t ... . You can compensate as follows: from django.utils import timezone value = timezone . make_aware ( value , t ... ng time zone information. Template tag modules are imported when templates are configured ¶ The DjangoTempla ...
https://man.plustar.jp/django/releases/1.9.html - [similar]
メールを送信する — Django 4.0.6 ドキュメント 4637
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... な例 ¶ 次の 2 文を書くことで、 from django.core.mail import send_mail send_mail ( 'Subject here' , 'Here is th ... nks/" にリダイレクトします。 from django.core.mail import BadHeaderError , send_mail from django.http import ... レスのリストまたはタプル。 例: from django.core.mail import EmailMessage email = EmailMessage ( 'Hello' , 'Bod ... るには、以下のように書きます: from django.core.mail import EmailMultiAlternatives subject , from_email , to = ...
https://man.plustar.jp/django/topics/email.html - [similar]
Django オブジェクトのシリアル化 — Django 4.0.6 ドキュメント 4637
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... you can serialize data like this: from django.core import serializers data = serializers . serialize ( "xml" ... ields argument to the serializer: from django.core import serializers data = serializers . serialize ( 'xml' ... this will work: from django.core.serializers.json import DjangoJSONEncoder class LazyEncoder ( DjangoJSONEn ... serialize() function: from django.core.serializers import serialize serialize ( 'json' , SomeModel . objects ...
https://man.plustar.jp/django/topics/serialization.html - [similar]
django.middleware.clickjacking — Django 4.0.6 ドキュメント 4595
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... your site in a hidden frame. """ from django.conf import settings from django.utils.deprecation import Midd ...
https://man.plustar.jp/django/_modules/django/middleware/clickjacking.html - [similar]
マネージャ — Django 4.0.6 ドキュメント 4595
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ます。たとえば、次のように書きます。 from django.db import models class Person ( models . Model ): #... peopl ... nager adds a method with_counts() : from django.db import models from django.db.models.functions import Coal ... tem. For example, using this model: from django.db import models class Book ( models . Model ): title = mode ... instance; i.e., the following code must work: >>> import copy >>> manager = MyManager () >>> my_copy = copy ...
https://man.plustar.jp/django/topics/db/managers.html - [similar]
クエリを作成する — Django 4.0.6 ドキュメント 4595
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... , which comprise a blog application: from datetime import date from django.db import models class Blog ( mod ... 、利用例は以下のようになります: >>> from blog.models import Blog >>> b = Blog ( name = 'Beatles Blog' , taglin ... we can retrieve them below): >>> from blog.models import Blog , Entry >>> entry = Entry . objects . get ( p ... インスタンス joe を追加します。 >>> from blog.models import Author >>> joe = Author . objects . create ( name ...
https://man.plustar.jp/django/topics/db/queries.html - [similar]
How to manage static files (e.g. images, JavaScript, CSS) — Django 4.0.6 ドキュ... 4565
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ollowing snippet to your urls.py: from django.conf import settings from django.conf.urls.static import stati ... ng snippet to your ROOT_URLCONF : from django.conf import settings from django.conf.urls.static import stati ...
https://man.plustar.jp/django/howto/static-files/index.html - [similar]