検索

phrase: max: clip:
target: order:
Results of 41 - 50 of about 359 for from (0.084 sec.)
Django の認証方法のカスタマイズ — Django 4.0.6 ドキュメント 5634
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... arguments. Most of the time, it'll look like this: from django.contrib.auth.backends import BaseBackend cl ... ser. ... 一方、次のように認証トークンでも表せます: from django.contrib.auth.backends import BaseBackend cl ... の User オブジェクトを作成するバックエンドの例です: from django.conf import settings from django.contrib.au ... th.backends import BaseBackend from django.contrib.auth.hashers import check_password ...
https://man.plustar.jp/django/topics/auth/customizing.html - [similar]
JavaScript — Django 4.0.6 ドキュメント 5607
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ango's JavaScript tests can be run in a browser or from the command line. The tests are located in a top l ... t . テストの実行 ¶ The JavaScript tests may be run from a web browser or from the command line. Testing fr ... om a web browser ¶ To run the tests from a web browser, open up js_tests/tests.html in your ... 0/js_tests/tests.html in your web browser. Testing from the command line ¶ To run the tests from the comma ...
https://man.plustar.jp/django/internals/contributing/writing-code/javascript.htm... - [similar]
GeoDjango Tutorial — Django 4.0.6 ドキュメント 5607
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... tion in different formats. Editing geometry fields from the admin. This tutorial assumes familiarity with ... 1] Some of the code used in this tutorial is taken from and/or inspired by the GeoDjango basic apps projec ... , create a GeoDjango model to represent this data: from django.contrib.gis.db import models class WorldBor ... elf . name Note that the models module is imported from django.contrib.gis.db . The default spatial refere ...
https://man.plustar.jp/django/ref/contrib/gis/tutorial.html - [similar]
PostgreSQL specific database constraints — Django 4.0.6 ドキュメント 5607
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ts additional data integrity constraints available from the django.contrib.postgres.constraints module. Th ... le.DEFERRED or Deferrable.IMMEDIATE . For example: from django.contrib.postgres.constraints import Exclusi ... onConstraint from django.contrib.postgres.fields import RangeOperato ... rs from django.db.models import Deferrable ExclusionConstr ...
https://man.plustar.jp/django/ref/contrib/postgres/constraints.html - [similar]
マイグレーション — Django 4.0.6 ドキュメント 5607
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... without a transaction. You can prevent a migration from running in a transaction by setting the atomic att ... ribute to False . For example: from django.db import migrations class Migration ( migr ... 的なマイグレーションファイルは、次のような形式です。 from django.db import migrations , models class Migrati ... el ( models . Model ): objects = MyManager () もし from_queryset() 関数で動的に生成されたマネージャクラスを ...
https://man.plustar.jp/django/topics/migrations.html - [similar]
モデルインスタンスリファレンス — Django 4.0.6 ドキュメント 5572
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... てください: モデルクラスにクラスメソッドを追加する: from django.db import models class Book ( models . Mode ... ルの読み込みをカスタマイズする ¶ classmethod Model. from_db ( db , field_names , values ) ¶ from_db() メソッ ... います。 In addition to creating the new model, the from_db() method must set the adding and db flags in th ... をどのように保存しているのかについてを示した例です: from django.db.models import DEFERRED @classmethod def ...
https://man.plustar.jp/django/ref/models/instances.html - [similar]
ファイルの管理 — Django 4.0.6 ドキュメント 5518
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... owing model, using an ImageField to store a photo: from django.db import models class Car ( models . Model ... the default FileSystemStorage ): >>> import os >>> from django.conf import settings >>> initial_path = car ... save an existing file on disk to a FileField : >>> from pathlib import Path >>> from django.core.files imp ... used without reopening the image. For example: >>> from PIL import Image >>> car = Car . objects . get ( n ...
https://man.plustar.jp/django/topics/files.html - [similar]
Signals — Django 4.0.6 ドキュメント 5518
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... - Specifies a particular sender to receive signals from. See Connecting to signals sent by specific sender ... o a signal. You can take the manual connect route: from django.core.signals import request_finished reques ... ion to. Here's how you connect with the decorator: from django.core.signals import request_finished from d ... () , this will implicitly connect signal handlers: from django.apps import AppConfig from django.core.sign ...
https://man.plustar.jp/django/topics/signals.html - [similar]
テストツール — Django 4.0.6 ドキュメント 5518
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ate django.test.Client and retrieve web pages: >>> from django.test import Client >>> c = Client () >>> re ... 次のように enforce_csrf_checks 引数を渡します。 >>> from django.test import Client >>> csrf_client = Client ... ent ( HTTP_USER_AGENT = 'Mozilla/5.0' ) The values from the extra keyword arguments passed to get() , post ... e_image_file_extension validator. For example: >>> from io import BytesIO >>> img = BytesIO ( b 'mybinaryd ...
https://man.plustar.jp/django/topics/testing/tools.html - [similar]
Django Utils — Django 4.0.6 ドキュメント 5492
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... it. get_max_age ( response ) ¶ Returns the max-age from the response Cache-Control header as an integer (o ... it pulls the list of headers to take into account from the global path registry and uses those to build a ... headers to take into account for some request path from the response object. It stores those headers in a ... ts (or some close alternatives) and return objects from the corresponding classes in Python's datetime mod ...
https://man.plustar.jp/django/ref/utils.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 12 13 14 NEXT