検索

phrase: max: clip:
target: order:
Results of 51 - 60 of about 359 for from (0.091 sec.)
How to create custom template tags and filters — Django 4.0.6 ドキュメント 5465
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... のモジュールの上部に、次のコードを記述してください: from django import template register = template . Libra ... cut ( value , arg ): """Removes all values of arg from the given string""" return value . replace ( arg , ... 関数に渡される前にオブジェクトを文字列に変換します。 from django import template from django.template.defaul ... のようなコードでこれらの値を検証することができます: from django.utils.safestring import SafeString if isins ...
https://man.plustar.jp/django/howto/custom-template-tags.html - [similar]
Django のショートカット関数 — Django 4.0.6 ドキュメント 5465
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ex.html with the MIME type application/xhtml+xml : from django.shortcuts import render def my_view ( reque ... cation/xhtml+xml' ) This example is equivalent to: from django.http import HttpResponse from django.templa ... hod will be called to figure out the redirect URL: from django.shortcuts import redirect def my_view ( req ... A Model class, a Manager , or a QuerySet instance from which to get the object. **kwargs Lookup parameter ...
https://man.plustar.jp/django/topics/http/shortcuts.html - [similar]
Base views — Django 4.0.6 ドキュメント 5438
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... _method_not_allowed() options() Example views.py : from django.http import HttpResponse from django.views ... HttpResponse ( 'Hello, World!' ) Example urls.py : from django.urls import path from myapp.views import My ... d any positional and/or keyword arguments captured from the URL pattern to the args and kwargs attributes, ... ot_allowed() get_context_data() Example views.py : from django.views.generic.base import TemplateView from ...
https://man.plustar.jp/django/ref/class-based-views/base.html - [similar]
Admin actions — Django 4.0.6 ドキュメント 5438
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... to all models. For example, here's the user module from Django's built-in django.contrib.auth app: 警告 "選 ... Imagine a news application with an Article model: from django.db import models STATUS_CHOICES = [ ( 'd' , ... a model like this is to update an article's status from "draft" to "published". We could easily do this in ... tion that gets called when the action is triggered from the admin. Action functions are regular functions ...
https://man.plustar.jp/django/ref/contrib/admin/actions.html - [similar]
Unit tests — Django 4.0.6 ドキュメント 5412
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... code formatting ), install and run the tox command from any place in the Django source tree:   $ python ... ion runs the given test alongside every other test from the suite, letting you check if another test has s ... thod should be bound to a temporary Apps instance: from django.apps.registry import Apps from django.db im ... port models from django.test import SimpleTestCase class TestModelD ...
https://man.plustar.jp/django/internals/contributing/writing-code/unit-tests.htm... - [similar]
django.core.mail — Django 4.0.6 ドキュメント 5385
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... il のソースコード """ Tools for sending email. """ from django.conf import settings # Imported for backwar ... nds and the subsequent reorganization (See #10355) from django.core.mail.message import ( DEFAULT_ATTACHME ... EText , forbid_multi_line_headers , make_msgid , ) from django.core.mail.utils import DNS_NAME , CachedDns ... Name from django.utils.module_loading import import_string _ ...
https://man.plustar.jp/django/_modules/django/core/mail.html - [similar]
PostgreSQL specific query expressions — Django 4.0.6 ドキュメント 5385
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... uery expressions ¶ These expressions are available from the django.contrib.postgres.expressions module. Ar ... greSQL ARRAY constructor to build a list of values from the queryset, which must use QuerySet.values() to ... return only a single column. This class differs from ArrayAgg in the way that it does not act as an agg ... ll related books to an author as JSON objects: >>> from django.db.models import OuterRef >>> from django.d ...
https://man.plustar.jp/django/ref/contrib/postgres/expressions.html - [similar]
Form fields — Django 4.0.6 ドキュメント 5385
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ionError exception or returns the clean value: >>> from django import forms >>> f = forms . EmailField () ... lean() will raise a ValidationError exception: >>> from django import forms >>> f = forms . CharField () > ... her Field classes, it might be None . (This varies from field to field.) Widgets of required form fields h ... やすくするため auto_id=False を指定しています。 >>> from django import forms >>> class CommentForm ( forms ...
https://man.plustar.jp/django/ref/forms/fields.html - [similar]
Django 0.96 リリースノート — Django 4.0.6 ドキュメント 5385
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ay require you to update your code when you switch from 0.95 to 0.96: 要求される MySQLdb バージョン ¶ (Dja ... TABASE_ENGINE setting in your Django settings file from this: DATABASE_ENGINE = "mysql" to this: DATABASE_ ... is transition, and is considered deprecated; aside from any necessary security fixes, it will not be activ ... h, as you might expect, will dump and load data to/from the database. These commands can operate against a ...
https://man.plustar.jp/django/releases/0.96.html - [similar]
Advanced testing topics — Django 4.0.6 ドキュメント 5358
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ollowing is a unit test using the request factory: from django.contrib.auth.models import AnonymousUser , ... User from django.test import RequestFactory , TestCase from ... ssuming the following class-based view: views.py ¶ from django.views.generic import TemplateView class Hom ... efore proceeding with your test's code: tests.py ¶ from django.test import RequestFactory , TestCase from ...
https://man.plustar.jp/django/topics/testing/advanced.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 NEXT