検索

phrase: max: clip:
target: order:
Results of 121 - 130 of about 231 for import (0.104 sec.)
Submitting patches — Django 4.0.6 ドキュメント 4781
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... th hundreds of contributors around the world, it's important to manage communication efficiently so that wor ... lass level: In a particular test: from django.test import ignore_warnings from django.utils.deprecation impo ... f ): ... For an entire test case: from django.test import ignore_warnings from django.utils.deprecation impo ... deprecation warning: from django.utils.deprecation import RemovedInDjangoXXWarning def test_foo_deprecation_ ...
https://man.plustar.jp/django/internals/contributing/writing-code/submitting-pat... - [similar]
The Django template language: for Python programmers — Django 4.0.6 ドキュメン... 4781
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ecified as strings. Each Loader class knows how to import templates from a particular source. Optionally, a ... ment — the raw template code: from django.template import Template template = Template ( "My name is {{ my_n ... t to "fill" the template: >>> from django.template import Context , Template >>> template = Template ( "My n ... Here are a few examples: >>> from django.template import Context , Template >>> t = Template ( "My name is ...
https://man.plustar.jp/django/ref/templates/api.html - [similar]
Built-in Views — Django 4.0.6 ドキュメント 4781
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ething like this to your URLconf: from django.conf import settings from django.urls import re_path from djan ... go.views.static import serve # ... the rest of your URLconf goes here ... ... an use code like this: from django.core.exceptions import PermissionDenied def edit ( request , pk ): if not ...
https://man.plustar.jp/django/ref/views.html - [similar]
Django 1.6.3 release notes — Django 4.0.6 ドキュメント 4781
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... o the desired view. In this situation, Django will import the module indicated by that dotted path as part o ... generating the resulting URL. If such a module has import-time side effects, those side effects will occur. ... own to an attacker to exist on the server's Python import path, which perform code execution with side effec ... ts on importing. To remedy this, reverse() will now only accept ...
https://man.plustar.jp/django/releases/1.6.3.html - [similar]
セッションの使いかた — Django 4.0.6 ドキュメント 4781
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ッキーの典型的な使用例を挙げます。 from django.http import HttpResponse from django.shortcuts import render d ... re をインポートすることを考えるべきです。 >>> from importlib import import_module >>> from django.conf impor ... t settings >>> SessionStore = import_module ( settings . SESSION_ENGINE ) . SessionStor ... です。 >>> from django.contrib.sessions.backends.db import SessionStore >>> s = SessionStore () >>> # stored ...
https://man.plustar.jp/django/topics/http/sessions.html - [similar]
How to implement a custom template backend — Django 4.0.6 ドキュメント 4739
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... onal foobar template library: from django.template import TemplateDoesNotExist , TemplateSyntaxError from dj ... ango.template.backends.base import BaseEngine from django.template.backends.utils imp ... ort csrf_input_lazy , csrf_token_lazy import foobar class FooBar ( BaseEngine ): # Name of the ...
https://man.plustar.jp/django/howto/custom-template-backend.html - [similar]
PostgreSQL specific form fields and widgets — Django 4.0.6 ドキュメント 4739
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... data and validate it. For example: >>> from django import forms >>> from django.contrib.postgres.forms impor ... ayField for multidimensional data: >>> from django import forms >>> from django.contrib.postgres.forms impor ...
https://man.plustar.jp/django/ref/contrib/postgres/forms.html - [similar]
ウィジェット — Django 4.0.6 ドキュメント 4709
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... on the field definition. For example: from django import forms class CommentForm ( forms . Form ): name = f ... t に対して years 属性がセットされます: from django import forms BIRTH_YEAR_CHOICES = [ '1980' , '1981' , '19 ... .choices が更新されます。たとえば: >>> from django import forms >>> CHOICES = [( '1' , 'First' ), ( '2' , 'S ... For example, take the following form: from django import forms class CommentForm ( forms . Form ): name = f ...
https://man.plustar.jp/django/ref/forms/widgets.html - [similar]
Signals — Django 4.0.6 ドキュメント 4709
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ence can be quite handy when dealing with circular import dependencies and swappable models. pre_init ¶ djan ... a handler like this: from django.db.models.signals import m2m_changed def toppings_changed ( sender , ** kwa ... m AppConfig.__init__() instead, taking care not to import models or trigger calls to the app registry. Argum ... llback in an AppConfig like this: from django.apps import AppConfig from django.db.models.signals import pos ...
https://man.plustar.jp/django/ref/signals.html - [similar]
Django 3.1 release notes — Django 4.0.6 ドキュメント 4709
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... at were previously PostgreSQL-only: from django.db import models class ContactInfo ( models . Model ): data ... it for first names, use a custom form: from django import forms from django.contrib.auth.forms import UserCh ... を設定してください。 from django.contrib.auth.admin import UserAdmin from django.contrib.auth.models import U ... ested-With HTTP header presence. The compatibility imports of django.core.exceptions.EmptyResultSet in djang ...
https://man.plustar.jp/django/releases/3.1.html - [similar]