検索

phrase: max: clip:
target: order:
Results of 91 - 100 of about 231 for import (0.108 sec.)
django.contrib.messages.middleware — Django 4.0.6 ドキュメント 5140
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... essages.middleware のソースコード from django.conf import settings from django.contrib.messages.storage impo ... rt default_storage from django.utils.deprecation import MiddlewareMixin [ドキュメント] class MessageMiddle ...
https://man.plustar.jp/django/_modules/django/contrib/messages/middleware.html - [similar]
はじめての Django アプリ作成、その2 — Django 4.0.6 ドキュメント 5140
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... に編集してください: polls/models.py ¶ from django.db import models class Question ( models . Model ): question ... の世界を探検してみましょう: >>> from polls.models import Choice , Question # Import the model classes we ju ... it will do the right thing. >>> from django.utils import timezone >>> q = Question ( question_text = "What' ... 両方に追加します。 polls/models.py ¶ from django.db import models class Question ( models . Model ): # ... de ...
https://man.plustar.jp/django/intro/tutorial02.html - [similar]
QuerySet API リファレンス — Django 4.0.6 ドキュメント 5140
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... of what is involved when pickling QuerySets . The important thing for the purposes of this section is that ... any results loaded) using some code like this: >>> import pickle >>> query = pickle . loads ( s ) # Assuming ... e, it will be converted to QuerySet.values() : >>> import pickle >>> qs = Blog . objects . values_list ( 'id ... ー数を決定したいとします: >>> from django.db.models import Count >>> q = Blog . objects . annotate ( Count ( ...
https://man.plustar.jp/django/ref/models/querysets.html - [similar]
はじめての Django アプリ作成、その 7 — Django 4.0.6 ドキュメント 5110
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... みてください。 polls/admin.py ¶ from django.contrib import admin from .models import Question class QuestionA ... あるでしょう。 polls/admin.py ¶ from django.contrib import admin from .models import Question class QuestionA ... 録する方法です: polls/admin.py ¶ from django.contrib import admin from .models import Choice , Question # ... ... えてください。 polls/admin.py ¶ from django.contrib import admin from .models import Choice , Question class ...
https://man.plustar.jp/django/intro/tutorial07.html - [similar]
クロスサイトリクエストフォージェリ (CSRF) 対策 — Django 4.0.6 ドキュメント 5110
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... です。 使い方は以下の通りです: from django.shortcuts import render from django.views.decorators.csrf import cs ... ecorator first: from django.views.decorators.cache import cache_page from django.views.decorators.csrf impor ... nt that enforces CSRF checks: >>> from django.test import Client >>> csrf_client = Client ( enforce_csrf_che ... sured by the middleware. Example: from django.http import HttpResponse from django.views.decorators.csrf imp ...
https://man.plustar.jp/django/ref/csrf.html - [similar]
Django 1.7 release notes — Django 4.0.6 ドキュメント 5110
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... quently remove this line from your URLconf. Django imports all application configurations and models as soon ... rd process. This should make it easier to diagnose import issues such as import loops. New method on Field s ... e Django at the beginning of your script with: >>> import django >>> django . setup () Otherwise, you will h ... recommended way to create a WSGI application was: import django.core.handlers.wsgi application = django . c ...
https://man.plustar.jp/django/releases/1.7.html - [similar]
モデルインスタンスリファレンス — Django 4.0.6 ドキュメント 5068
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... デルクラスにクラスメソッドを追加する: from django.db import models class Book ( models . Model ): title = mode ... るのかについてを示した例です: from django.db.models import DEFERRED @classmethod def from_db ( cls , db , fie ... 必要があります。例えば: from django.core.exceptions import ValidationError try : article . full_clean () exce ... アクセスする必要のガルバリデーションを実施できます: import datetime from django.core.exceptions import Valida ...
https://man.plustar.jp/django/ref/models/instances.html - [similar]
Django Utils — Django 4.0.6 ドキュメント 5068
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... tils.feedgenerator ¶ 使用例: >>> from django.utils import feedgenerator >>> feed = feedgenerator . Rss201rev ... perty can avoid that: from django.utils.functional import cached_property class Person ( models . Model ): @ ... rted to a string. 例: from django.utils.functional import keep_lazy , keep_lazy_text def fancy_utility_funct ... n use this decorator: from django.utils.functional import keep_lazy , keep_lazy_text # Our previous example ...
https://man.plustar.jp/django/ref/utils.html - [similar]
非同期サポート — Django 4.0.6 ドキュメント 5068
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ync`でラップする必要があります。 from asgiref.sync import sync_to_async results = await sync_to_async ( Blog ... す方が簡単だと思うかもしれません。 from asgiref.sync import sync_to_async def _get_blog ( pk ): return Blog . ... 行いたい場合は、 os.environ :: を使用してください。 import os os . environ [ "DJANGO_ALLOW_ASYNC_UNSAFE" ] = ... a direct wrapper or a decorator: from asgiref.sync import async_to_sync async def get_data ( ... ): ... sync ...
https://man.plustar.jp/django/topics/async.html - [similar]
How to create CSV output — Django 4.0.6 ドキュメント 5038
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ルライクオブジェクトなのです。 以下に例を示します。 import csv from django.http import HttpResponse def some_ ... な CSV ファイルの組み立てと伝達を効率的に扱います。 import csv from django.http import StreamingHttpResponse ... 例と同じ CSV ファイルを生成します。 from django.http import HttpResponse from django.template import loader de ...
https://man.plustar.jp/django/howto/outputting-csv.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 NEXT