per page, with , order by , clip by
Results of 1 - 10 of about 82 for setup (0.004 sec.)
クラスベースのジェネリックビュー: フラットインデックス — Django 6.1 ドキュメン... 14017
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クラスベースのジェネリックビュー: フラットインデックス ¶ この索引は、クラスベースビューのリファレンス文書を、異なる観点から編成したものです。ビューご ... ass View ¶ 属性 (とオプションのアクセサ): http_method_names メソッド as_view() dispatch() head() http_method_not_allowed() setup() TemplateView ¶ class TemplateView ¶ 属性 (とオプションのアクセサ): content_type extra_context http_method_names response ... ate_names() ] メソッド as_view() dispatch() get() get_context_data() head() http_method_not_allowed() render_to_response() setup() RedirectView ¶ class RedirectView ¶ 属性 (とオプションのアクセサ): http_method_names pattern_name permanent query_string ... get_redirect_url() ] メソッド as_view() delete() dispatch() get() head() http_method_not_allowed() options() post() put() setup() 詳細ビュー ¶ DetailView ¶ class DetailView ¶ 属性 (とオプションのアクセサ): content_type context_object_name [ get_conte ...
https://man.mtool.work/django/6.1/ref/class-based-views/flattened-index.html
クラスベースのジェネリックビュー: フラットインデックス — Django 6.1 ドキュメン... 13445
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クラスベースのジェネリックビュー: フラットインデックス ¶ この索引は、クラスベースビューのリファレンス文書を、異なる観点から編成したものです。ビューご ... ass View ¶ 属性 (とオプションのアクセサ): http_method_names メソッド as_view() dispatch() head() http_method_not_allowed() setup() TemplateView ¶ class TemplateView ¶ 属性 (とオプションのアクセサ): content_type extra_context http_method_names response ... ate_names() ] メソッド as_view() dispatch() get() get_context_data() head() http_method_not_allowed() render_to_response() setup() RedirectView ¶ class RedirectView ¶ 属性 (とオプションのアクセサ): http_method_names pattern_name permanent query_string ... get_redirect_url() ] メソッド as_view() delete() dispatch() get() head() http_method_not_allowed() options() post() put() setup() 詳細ビュー ¶ DetailView ¶ class DetailView ¶ 属性 (とオプションのアクセサ): content_type context_object_name [ get_conte ...
https://man.mtool.work/django/6.1/ref/class-based-views/flattened-index.html
Djangoの設定 — Django 6.1 ドキュメント 9985
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Djangoの設定 ¶ Djangoの設定ファイルには、インストールしたDjangoの全ての設定が含まれています。このドキュメントでは、各設定の役割と、どのような設定を利 ... E のどちらか片方だけを使ってください。両方使うのも、両方使わないのもいけません。 スタンドアロンで Django を使うには django.setup() を呼び出す必要がある ¶ Django のコンポーネントを "スタンドアロン" で使う場合、たとえば、 Django テンプレートを読み込んで ... 必要なステップがあります。 After you've either set DJANGO_SETTINGS_MODULE or called configure() , you'll need to call django.setup() to load your settings and populate Django's application registry. For example: import django from django.conf import set ... tings from myapp import myapp_defaults settings . configure ( default_settings = myapp_defaults , DEBUG = True ) django . setup () # Now this script or any imported module can use any part of Django it needs. from myapp import models django.setup() を ...
https://man.mtool.work/django/6.1/topics/settings.html
Djangoの設定 — Django 6.1 ドキュメント 9985
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Djangoの設定 ¶ Djangoの設定ファイルには、インストールしたDjangoの全ての設定が含まれています。このドキュメントでは、各設定の役割と、どのような設定を利 ... E のどちらか片方だけを使ってください。両方使うのも、両方使わないのもいけません。 スタンドアロンで Django を使うには django.setup() を呼び出す必要がある ¶ Django のコンポーネントを "スタンドアロン" で使う場合、たとえば、 Django テンプレートを読み込んで ... 必要なステップがあります。 After you've either set DJANGO_SETTINGS_MODULE or called configure() , you'll need to call django.setup() to load your settings and populate Django's application registry. For example: import django from django.conf import set ... tings from myapp import myapp_defaults settings . configure ( default_settings = myapp_defaults , DEBUG = True ) django . setup () # Now this script or any imported module can use any part of Django it needs. from myapp import models django.setup() を ...
https://man.mtool.work/django/6.1/topics/settings.html
テストに関する高度なトピック — Django 6.1 ドキュメント 9413
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » テストに関する高度なトピック ¶ RequestFactory(リクエスト ファクトリ) ¶ class RequestFactory [ソース] ¶ RequestFactory はテストクライアントと同じ A ... r from django.test import RequestFactory , TestCase from .views import MyView , my_view class SimpleTest ( TestCase ): def setUp ( self ): # Every test needs access to the request factory. self . factory = RequestFactory () self . user = User . object ... ラスベースのビューをテストする ¶ リクエスト/レスポンスサイクルの外でクラスベースのビューをテストするには、インスタンス化後に setup() を呼び出して、正しく設定されていることを確認する必要があります。 たとえば、以下のようなクラスベースのビューを想定します: ... super () . get_context_data ( ** kwargs ) get_context_data() メソッドを直接テストするには、まずビューをインスタンス化して setup() に request を渡します: tests.py ¶ from django.test import RequestFactory , TestCase from .views import HomeView class Ho ...
https://man.mtool.work/django/6.1/topics/testing/advanced.html
テストに関する高度なトピック — Django 6.1 ドキュメント 9290
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » テストに関する高度なトピック ¶ RequestFactory(リクエスト ファクトリ) ¶ class RequestFactory [ソース] ¶ RequestFactory はテストクライアントと同じ A ... r from django.test import RequestFactory , TestCase from .views import MyView , my_view class SimpleTest ( TestCase ): def setUp ( self ): # Every test needs access to the request factory. self . factory = RequestFactory () self . user = User . object ... ラスベースのビューをテストする ¶ リクエスト/レスポンスサイクルの外でクラスベースのビューをテストするには、インスタンス化後に setup() を呼び出して、正しく設定されていることを確認する必要があります。 たとえば、以下のようなクラスベースのビューを想定します: ... super () . get_context_data ( ** kwargs ) get_context_data() メソッドを直接テストするには、まずビューをインスタンス化して setup() に request を渡します: tests.py ¶ from django.test import RequestFactory , TestCase from .views import HomeView class Ho ...
https://man.mtool.work/django/6.1/topics/testing/advanced.html
ベース・ビュー — Django 6.1 ドキュメント 8364
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ベース・ビュー ¶ 以下の3つのクラスは、Django のビューの作成に必要な多くの機能を提供します。これらは Django ビューの 親の ビューとみなすことができ、そ ... 承します。厳密にはジェネリックビューではないので、 django.views からインポートすることもできます。 メソッドのフローチャート setup() dispatch() http_method_not_allowed() options() Example views.py : from django.http import HttpResponse from django.views ... れたビューは、 view_class と view_initkwargs 属性を持っています。 リクエスト/レスポンスサイクル中にビューが呼び出されると、 setup() メソッドは HttpRequest をビューの request 属性に割り当て、 URLパターンからキャプチャされた位置引数および/またはキーワード ... async def ) と同期ハンドラ ( def ) の両方が1つのビュークラスで定義されている場合、 ImproperlyConfigured 例外が発生します。 setup ( request , * args , ** kwargs ) ¶ dispatch() の前に、ビューの初期化のための重要な処理を実行します。 ビューの request 属性 ...
https://man.mtool.work/django/6.1/ref/class-based-views/base.html
ベース・ビュー — Django 6.1 ドキュメント 8255
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ベース・ビュー ¶ 以下の3つのクラスは、Django のビューの作成に必要な多くの機能を提供します。これらは Django ビューの 親の ビューとみなすことができ、そ ... 承します。厳密にはジェネリックビューではないので、 django.views からインポートすることもできます。 メソッドのフローチャート setup() dispatch() http_method_not_allowed() options() Example views.py : from django.http import HttpResponse from django.views ... れたビューは、 view_class と view_initkwargs 属性を持っています。 リクエスト/レスポンスサイクル中にビューが呼び出されると、 setup() メソッドは HttpRequest をビューの request 属性に割り当て、 URLパターンからキャプチャされた位置引数および/またはキーワード ... async def ) と同期ハンドラ ( def ) の両方が1つのビュークラスで定義されている場合、 ImproperlyConfigured 例外が発生します。 setup ( request , * args , ** kwargs ) ¶ dispatch() の前に、ビューの初期化のための重要な処理を実行します。 ビューの request 属性 ...
https://man.mtool.work/django/6.1/ref/class-based-views/base.html
ジェネリック表示ビュー (Generic display view) — Django 6.1 ドキュメント 7219
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ジェネリック表示ビュー (Generic display view) ¶ 以下の2つのクラスベースのジェネリックビューは、データを表示 (display) するために設計されています。多 ... etail.BaseDetailView django.views.generic.detail.SingleObjectMixin django.views.generic.base.View メソッドのフローチャート setup() dispatch() http_method_not_allowed() get_template_names() get_slug_field() get_queryset() get_object() get_context_objec ... ic.list.BaseListView django.views.generic.list.MultipleObjectMixin django.views.generic.base.View メソッドのフローチャート setup() dispatch() http_method_not_allowed() get_template_names() get_queryset() get_context_object_name() get_context_data() ge ...
https://man.mtool.work/django/6.1/ref/class-based-views/generic-display.html
ジェネリック表示ビュー (Generic display view) — Django 6.1 ドキュメント 7219
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ジェネリック表示ビュー (Generic display view) ¶ 以下の2つのクラスベースのジェネリックビューは、データを表示 (display) するために設計されています。多 ... etail.BaseDetailView django.views.generic.detail.SingleObjectMixin django.views.generic.base.View メソッドのフローチャート setup() dispatch() http_method_not_allowed() get_template_names() get_slug_field() get_queryset() get_object() get_context_objec ... ic.list.BaseListView django.views.generic.list.MultipleObjectMixin django.views.generic.base.View メソッドのフローチャート setup() dispatch() http_method_not_allowed() get_template_names() get_queryset() get_context_object_name() get_context_data() ge ...
https://man.mtool.work/django/6.1/ref/class-based-views/generic-display.html
PREV 1 2 3 4 5 6 7 8 9 NEXT