per page, with , order by , clip by
Results of 1 - 10 of about 58 for Client (0.007 sec.)
条件式 14929
条件式 Conditional expressions let you use if ... elif ... else logic within filters, annotations, aggregations, and updates. A conditional expression evaluates a series of conditions for each row of a table and returns the matching result ... ted like other expressions . 条件式クラス このページの例では、以下のモデルを使用します: from django.db import models class Client ( models . Model ): REGULAR = "R" GOLD = "G" PLATINUM = "P" ACCOUNT_TYPE_CHOICES = { REGULAR : "Regular" , GOLD : "Gold" , ... F , Q , When >>> # String arguments refer to fields; the following two examples are equivalent: >>> When ( account_type = Client . GOLD , then = "name" ) >>> When ( account_type = Client . GOLD , then = F ( "name" )) >>> # You can use field lookups in ... created using boolean expressions. >>> from django.db.models import Exists , OuterRef >>> non_unique_account_type = ( ... Client . objects . filter ( ... account_type = OuterRef ( "account_type" ), ... ) ... . exclude ( pk = OuterRef ( "pk" )) ... . v ...
https://man.mtool.work/django/6.1/ref/models/conditional-expressions.html
テストツール 14212
テストツール Django は、テストを書くのに便利なツールをいくつか提供しています。 There are community-maintained solutions! Django has a vibrant ecosystem. There are testing and fixtures solutions highlighted on the Community Ecosystem page. T ... するには、これらすべてのタイプのテストを組み合わせて行うべきです。 概要と簡単な例 テストクライアントを使うには、 django.test.Client からインスタンスを作り、次のようにウェブページを取得します。 >>> from django.test import Client >>> c = Client () >>> resp ... 0 >>> response = c . get ( "/customer/details/" ) >>> response . content b'<!DOCTYPE html...' この例が示唆しているように、 Client のインスタンスは、Python のインタラクティブなインタプリタ上のセッションからでも作ることができます。 テストクライアントの動 ... ことができます。これには、クライアントを作る時に次のように enforce_csrf_checks 引数を渡します。 >>> from django.test import Client >>> csrf_client = Client ( enforce_csrf_checks = True ) リクエストの作成 リクエストの作成には、 django.test.Client クラスを ...
https://man.mtool.work/django/6.1/topics/testing/tools.html
Django 1.2.2 リリースノート 9455
Django 1.2.2 リリースノート Django 1.2.2 へようこそ! This is the second "bugfix" release in the Django 1.2 series, improving the stability and performance of the Django 1.2 codebase. Django 1.2.2 maintains backwards compatibility with Djang ... fix that forms part of the 1.2.2 release, it was necessary to add a feature -- the enforce_csrf_checks flag -- to the test client . This flag forces the test client to perform full CSRF checks on forms. The default behavior of the test client hasn't ch ... anged, but if you want to do CSRF checks with the test client, it is now possible to do so. ...
https://man.mtool.work/django/6.1/releases/1.2.2.html
はじめての Django アプリ作成、その 5 8489
はじめての Django アプリ作成、その 5 このチュートリアルは チュートリアル 4 の続きです。Web 投票アプリケーションが完成したので、今度は自動テストを作ってみましょう。 困ったときは: このチュートリアルの実行に問題がある場合は、FAQ の Getting Hel ... ょう。 初めに何かを修正する前に、使用できるツールについて見ておきましょう。 Django テストクライアント Django provides a test Client to simulate a user interacting with the code at the view level. We can use it in tests.py or even in the shell . もう一度 ... 中では、 django.test.TestCase クラス自体がクライアントを持っているため、インポートは不要です)。 >>> from django.test import Client >>> # create an instance of the client for our use >>> client = Client () さて、これでクライアントに仕事を頼む準備ができま ... した。 >>> # get a response from '/' >>> response = client . get ( "/" ) Not Found: / >>> # we should expect a 404 from that address; if you instead see an >>> # "Invalid HTTP_HOST ...
https://man.mtool.work/django/6.1/intro/tutorial05.html
索引 8065
索引 記号 | _ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | ア | イ | ク | コ | シ | ス | テ | ハ | ヒ | フ | メ | モ | ロ | 具 | 国 | 環 | 翻 | 表 | 言 | 長 記号 -- dbshell コマン ... ール) afirst() (django.db.models.query.QuerySet モジュール) aflush() (backends.base.SessionBase のメソッド) aforce_login() (Client のメソッド) aget() (backends.base.SessionBase のメソッド) (django.db.models.query.QuerySet モジュール) aget_all_permission ... の属性) ALLOWED_HOSTS setting allowlist (EmailValidator の属性) allows_composite_expressions (Expression の属性) alogin() (Client のメソッド) (django.contrib.auth モジュール) alogout() (Client のメソッド) (django.contrib.auth モジュール) alter_db_table ... Model のメソッド) asc() (Expression のメソッド) asend() (Signal のメソッド) asend_robust() (Signal のメソッド) asession() (Client のメソッド) aset() (backends.base.SessionBase のメソッド) (RelatedManager のメソッド) aset_expiry() (backends.base.Session ...
https://man.mtool.work/django/6.1/genindex.html
Django 1.1 リリースノート 7947
Django 1.1 リリースノート July 29, 2009 Django 1.1 へようこそ! Django 1.1 includes a number of nifty new features , lots of bug fixes, and an easy upgrade path from Django 1.0. Backwards-incompatible changes in 1.1 Django has a policy of AP ... umentation for TestCase and TransactionTestCase for a full description, and some important notes on database support. Test client improvements A couple of small -- but highly useful -- improvements have been made to the test client: The test Client now ... can automatically follow redirects with the follow argument to Client.get() and Client.post() . This makes testing views that issue redirects simpler. It's now easier to get at the template co ... ntext in the response returned the test client: you'll simply access the context as request.context[key] . The old way, which treats request.context as a list of context ...
https://man.mtool.work/django/6.1/releases/1.1.html
Django 1.4.11 リリースノート 7830
Django 1.4.11 リリースノート April 21, 2014 Django 1.4.11 fixes three security issues in 1.4.10. Additionally, Django's vendored version of six, django.utils.six , has been upgraded to the latest release (1.6.1). Unexpected code execution u ... r preventing cross-site request forgery (CSRF) attacks . The CSRF-protection system is based on a random nonce sent to the client in a cookie which must be sent by the client on future requests and, in forms, a hidden value which must be submitted back ... with the form. The caching framework includes an option to cache responses to anonymous (i.e., unauthenticated) clients. When the first anonymous request to a given page is by a client which did not have a CSRF cookie, the cache framework wi ... ll also cache the CSRF cookie and serve the same nonce to other anonymous clients who do not have a CSRF cookie. This can allow an attacker to obtain a valid CSRF cookie value and perform attacks which b ...
https://man.mtool.work/django/6.1/releases/1.4.11.html
Django 1.5.6 リリースノート 7830
Django 1.5.6 リリースノート April 21, 2014 Django 1.5.6 fixes several bugs in 1.5.5, including three security issues. Unexpected code execution using reverse() Django's URL handling is based on a mapping of regex patterns (representing the ... r preventing cross-site request forgery (CSRF) attacks . The CSRF-protection system is based on a random nonce sent to the client in a cookie which must be sent by the client on future requests and, in forms, a hidden value which must be submitted back ... with the form. The caching framework includes an option to cache responses to anonymous (i.e., unauthenticated) clients. When the first anonymous request to a given page is by a client which did not have a CSRF cookie, the cache framework wi ... ll also cache the CSRF cookie and serve the same nonce to other anonymous clients who do not have a CSRF cookie. This can allow an attacker to obtain a valid CSRF cookie value and perform attacks which b ...
https://man.mtool.work/django/6.1/releases/1.5.6.html
Django 1.6.3 リリースノート 7582
Django 1.6.3 リリースノート April 21, 2014 Django 1.6.3 fixes several bugs in 1.6.2, including three security issues, and makes one backwards-incompatible change: Unexpected code execution using reverse() Django's URL handling is based on a ... r preventing cross-site request forgery (CSRF) attacks . The CSRF-protection system is based on a random nonce sent to the client in a cookie which must be sent by the client on future requests and, in forms, a hidden value which must be submitted back ... with the form. The caching framework includes an option to cache responses to anonymous (i.e., unauthenticated) clients. When the first anonymous request to a given page is by a client which did not have a CSRF cookie, the cache framework wi ... ll also cache the CSRF cookie and serve the same nonce to other anonymous clients who do not have a CSRF cookie. This can allow an attacker to obtain a valid CSRF cookie value and perform attacks which b ...
https://man.mtool.work/django/6.1/releases/1.6.3.html
条件付きのビュー処理 7406
条件付きのビュー処理 HTTP クライアントは、さまざまな HTTPヘッダーを送信することで、受信したリソースについてサーバーに伝えることができます。この方法は、ウェブページを ( GET メソッドを利用して) 取得する際に、すでにクライアントが取得しているデ ... 関数で設定することも、 ConditionalGetMiddleware ミドルウェアを使用して ETag ヘッダを設定してもらうこともできます。 When the client next requests the same resource, it might send along a header such as either If-Modified-Since or If-Unmodified-Since , co ... h or If-None-Match , containing the last ETag it was sent. If the current version of the page matches the ETag sent by the client, or if the resource has not been modified, a 304 status code can be sent back, instead of a full response, telling the cli ... nt that nothing has changed. Depending on the header, if the page has been modified or does not match the ETag sent by the client, a 412 status code (Precondition Failed) may be returned. より細かい粒度のコントロールが必要な場合には、ビューごとの条件付 ...
https://man.mtool.work/django/6.1/topics/conditional-view-processing.html
PREV 1 2 3 4 5 6 NEXT