検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 231 for import (0.063 sec.)
Database Functions — Django 4.0.6 ドキュメント 9613
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ows the field to have two "empty values", but it's important for the Coalesce example below. Comparison and ... t_field . Usage example: >>> from django.db.models import FloatField >>> from django.db.models.functions imp ... rom least to most public >>> from django.db.models import Sum >>> from django.db.models.functions import Coa ... e correct database type: >>> from django.db.models import DateTimeField >>> from django.db.models.functions ...
https://man.plustar.jp/django/ref/models/database-functions.html - [similar]
django.utils.module_loading — Django 4.0.6 ドキュメント 8780
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ules up django.utils.module_loading のソースコード import copy import os import sys from importlib import im ... port_module from importlib.util import find_spec as importlib_find def cac ... hed_import ( module_path , class_name ): modules = sys . modu ... . __spec__ , "_initializing" , False ) is True ): import_module ( module_path ) return getattr ( modules [ ...
https://man.plustar.jp/django/_modules/django/utils/module_loading.html - [similar]
django.apps.config — Django 4.0.6 ドキュメント 8533
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... dex | Modules up django.apps.config のソースコード import inspect import os import warnings from importlib i ... mport import_module from django.core.exceptions import Improper ... lyConfigured from django.utils.deprecation import RemovedInDjango41Warning from django.utils.functio ... nal import cached_property from django.utils.module_loading i ...
https://man.plustar.jp/django/_modules/django/apps/config.html - [similar]
Coding style — Django 4.0.6 ドキュメント 8102
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... Python code in Django was reformatted with black . Imports ¶ Use isort to automate import sorting using the ... n't conform to the guidelines. If you need to have imports out of order (to avoid a circular import, for exa ... mple) use a comment like this: import module # isort:skip Put imports in these groups: f ... alphabetically by the full module name. Place all import module statements before from module import object ...
https://man.plustar.jp/django/internals/contributing/writing-code/coding-style.h... - [similar]
翻訳 — Django 4.0.6 ドキュメント 8060
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... using the function gettext() . It's convention to import this as a shorter alias, _ , to save typing. 注釈 ... lobal _() function causes interference. Explicitly importing gettext() as _() avoids this problem. _ として別 ... のせいで、単一の文字列引数を持つ関数のみが _ として import できます。 gettext() gettext_lazy() この例では、 " ... 翻訳文字列としてマークされています: from django.http import HttpResponse from django.utils.translation import ...
https://man.plustar.jp/django/topics/i18n/translation.html - [similar]
Django の admin サイト — Django 4.0.6 ドキュメント 7886
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... an example of the ModelAdmin : from django.contrib import admin from myapp.models import Author class Author ... 例は、次のように簡略化できます。 from django.contrib import admin from myapp.models import Author admin . site ... 、デレコータも用意されています: from django.contrib import admin from .models import Author @admin . register ... ード引数を使って渡してください: from django.contrib import admin from .models import Author , Editor , Reader ...
https://man.plustar.jp/django/ref/contrib/admin/index.html - [similar]
フォームセット (Formset) — Django 4.0.6 ドキュメント 7845
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 以下のようなフォームを考えましょう。 >>> from django import forms >>> class ArticleForm ( forms . Form ): ... ... 成するには、次のようにします。 >>> from django.forms import formset_factory >>> ArticleFormSet = formset_facto ... ている、ということです。以下の例を見てください: >>> import datetime >>> from django.forms import formset_fact ... ory >>> from myapp.forms import ArticleForm >>> ArticleFormSet = formset_factory ( ...
https://man.plustar.jp/django/topics/forms/formsets.html - [similar]
URL ディスパッチャ — Django 4.0.6 ドキュメント 7742
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ディスパッチャ ¶ A clean, elegant URL scheme is an important detail in a high-quality web application. Djang ... nfo . Once one of the URL patterns matches, Django imports and calls the given view, which is a Python funct ... マイズ例 ¶ URLconf のサンプルです。 from django.urls import path from . import views urlpatterns = [ path ( 'a ... conf using register_converter() : from django.urls import path , register_converter from . import converters ...
https://man.plustar.jp/django/topics/http/urls.html - [similar]
Generic date ビュー — Django 4.0.6 ドキュメント 7629
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... モデルが定義されていると仮定します: from django.db import models from django.urls import reverse class Artic ... に適用されます。 例 myapp/urls.py : from django.urls import path from django.views.generic.dates import Archiv ... eIndexView from myapp.models import Article urlpatterns = [ path ( 'archive/' , Archiv ... e myapp/views.py : from django.views.generic.dates import YearArchiveView from myapp.models import Article c ...
https://man.plustar.jp/django/ref/class-based-views/generic-date-based.html - [similar]
クラスベースのビューでフォームを扱う — Django 4.0.6 ドキュメント 7300
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ーム ¶ Given a contact form: forms.py ¶ from django import forms class ContactForm ( forms . Form ): name = f ... 構築することができます。 views.py ¶ from myapp.forms import ContactForm from django.views.generic.edit import ... を追加する必要があります: models.py ¶ from django.db import models from django.urls import reverse class Autho ... を書く必要はありません: views.py ¶ from django.urls import reverse_lazy from django.views.generic.edit import ...
https://man.plustar.jp/django/topics/class-based-views/generic-editing.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 NEXT