per page, with , order by , clip by
Results of 1 - 10 of about 116 for client (0.006 sec.)
条件式 — Django 6.1 ドキュメント 12728
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 条件式 ¶ Conditional expressions let you use if ... elif ... else logic within filters, annotations, aggregations, and updates. A conditional expres ... d 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
条件式 — Django 6.1 ドキュメント 12728
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 条件式 ¶ Conditional expressions let you use if ... elif ... else logic within filters, annotations, aggregations, and updates. A conditional expres ... d 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
テストツール — Django 6.1 ドキュメント 12114
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » テストツール ¶ Django は、テストを書くのに便利なツールをいくつか提供しています。 There are community-maintained solutions! Django has a vibrant ecos ... るには、これらすべてのタイプのテストを組み合わせて行うべきです。 概要と簡単な例 ¶ テストクライアントを使うには、 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 6.1 ドキュメント 12114
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » テストツール ¶ Django は、テストを書くのに便利なツールをいくつか提供しています。 There are community-maintained solutions! Django has a vibrant ecos ... るには、これらすべてのタイプのテストを組み合わせて行うべきです。 概要と簡単な例 ¶ テストクライアントを使うには、 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 リリースノート — Django 6.1 ドキュメント 8268
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.2.2 リリースノート ¶ Django 1.2.2 へようこそ! This is the second "bugfix" release in the Django 1.2 series, improving the stability and per ... 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. 目次 Django 1.2.2 リリースノート One new feature 前のトピックへ Django 1.2.3 リリースノート ... 次のトピックへ Django 1.2.1 リリースノート 関連キーワード client release features checks リリースノート backwards feature forms flag second bugfix series improving stability performance c ...
https://man.mtool.work/django/6.1/releases/1.2.2.html
Django 1.2.2 リリースノート — Django 6.1 ドキュメント 8068
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.2.2 リリースノート ¶ Django 1.2.2 へようこそ! This is the second "bugfix" release in the Django 1.2 series, improving the stability and per ... 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. 目次 Django 1.2.2 リリースノート One new feature 前のトピックへ Django 1.2.3 リリースノート ... 次のトピックへ Django 1.2.1 リリースノート 関連キーワード Django test client release but new features checks リリースノート backwards feature forms flag second bugfix series improving stability perfo ...
https://man.mtool.work/django/6.1/releases/1.2.2.html
はじめての Django アプリ作成、その 5 — Django 6.1 ドキュメント 7191
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » はじめての Django アプリ作成、その 5 ¶ このチュートリアルは チュートリアル 4 の続きです。Web 投票アプリケーションが完成したので、今度は自動テストを作 ... う。 初めに何かを修正する前に、使用できるツールについて見ておきましょう。 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
はじめての Django アプリ作成、その 5 — Django 6.1 ドキュメント 7191
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » はじめての Django アプリ作成、その 5 ¶ このチュートリアルは チュートリアル 4 の続きです。Web 投票アプリケーションが完成したので、今度は自動テストを作 ... う。 初めに何かを修正する前に、使用できるツールについて見ておきましょう。 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
Django 1.1 リリースノート — Django 6.1 ドキュメント 6940
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 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 ... 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 n ... ow 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.1 リリースノート — Django 6.1 ドキュメント 6940
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 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 ... 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 n ... ow 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
PREV 1 2 3 4 5 6 7 8 9 10 NEXT