per page, with , order by , clip by
Results of 1 - 8 of about 8 for Resolver (0.008 sec.)
Django の例外 13284
Django の例外 Django は普通の Python の例外の他に、いくつか独自の例外も起こします。 Django Core 例外 Django core 例外クラスは django.core.exceptions で定義されています。 AppRegistryNotReady exception AppRegistryNotReady [ソース] この例外は、 ... 場合は、同期スレッドを作成し、その中で呼び出してください。これは、 asgiref.sync.sync_to_async() を使用して実現できます。 URL Resolver の例外 URL Resolver の例外は django.urls で定義されています。 Resolver404 exception Resolver404 [ソース] The Resolver404 e ...
https://man.mtool.work/django/6.1/ref/exceptions.html
URL ディスパッチャ 9579
URL ディスパッチャ すっきりした、簡潔で明解な URL スキームは、高品質な Web アプリケーションでは重要な要素です。 Django では、フレームワークの制限なしに、望み通りの URL を設計できます。 URL はすっきりした扱いやすいものにすべきであるという主張 ... リケーションのインスタンスのリストを生成します。 If there is a current application defined, Django finds and returns the URL resolver for that instance. The current application can be specified with the current_app argument to the reverse() function. url テ ... or-polls/" という結果になります。 クラスベースビューのメソッド内: reverse ( "polls:index" , current_app = self . request . resolver_match . namespace ) テンプレート内: {% url 'polls:index' %} 現在のインスタンスがない場合(例えば、サイトの他の場所でページ ...
https://man.mtool.work/django/6.1/topics/http/urls.html
テストツール 9579
テストツール Django は、テストを書くのに便利なツールをいくつか提供しています。 There are community-maintained solutions! Django has a vibrant ecosystem. There are testing and fixtures solutions highlighted on the Community Ecosystem page. T ... 知使っている場合、 template_name が、レンダリングに使われるテンプレートの名前のみが必要な場合の適切な代替策となるでしょう。 resolver_match レスポンスに対する ResolverMatch のインスタンスです。たとえば、次のようにレスポンスを提供するビューを検証するために ... func 属性を使えます。 # my_view here is a function based view. self . assertEqual ( response . resolver_match . func , my_view ) # Class-based views need to compare the view_class, as the # functions generated by as_view() won ... 't be equal. self . assertIs ( response . resolver_match . func . view_class , MyView ) 指定された URL が見つからない場合、この属性にアクセスすると Resolver404 例外が投げられ ...
https://man.mtool.work/django/6.1/topics/testing/tools.html
Django 1.5 リリースノート 8838
Django 1.5 リリースノート February 26, 2013 Django 1.5 へようこそ! These release notes cover the new features , as well as some backwards incompatible changes you'll want to be aware of when upgrading from Django 1.4 or older versions. We'v ... fast-path allows for less queries and less objects fetched into memory. See QuerySet.delete() for details. An instance of ResolverMatch is stored on the request as resolver_match . By default, all logging messages reaching the django logger when DEBUG i ...
https://man.mtool.work/django/6.1/releases/1.5.html
Django ドキュメント目次 8097
Django ドキュメント目次 さぁ始めましょう Django の概要 モデルの設計 モデルのインストール 自動生成される API で楽しむ 作業場 (scaffold) ではなく完成品 (whole house) の、動的な admin インタフェース URL を設計する ビューの自作 テンプレートを設 ... デフォルトのオプション 追加の便利機能 コードから管理コマンドを実行する 出力のリダイレクト Django の例外 Django Core 例外 URL Resolver の例外 データベースの例外 HTTP 例外 セッションの例外 トランザクションの例外 テストフレームワークの例外 Python の例外 ファイ ...
https://man.mtool.work/django/6.1/contents.html
Django 1.8 リリースノート 8097
Django 1.8 リリースノート April 1, 2015 Django 1.8 へようこそ! このリリースノートでは、 バージョン 1.8 の新機能 と、Django 1.7 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... run the test cases in reverse order ( --reverse ), and to enable SQL logging for failing tests ( --debug-sql ). Added the resolver_match attribute to test client responses. Added several settings that allow customization of test tablespace parameters fo ...
https://man.mtool.work/django/6.1/releases/1.8.html
リクエストとレスポンスのオブジェクト 7356
リクエストとレスポンスのオブジェクト 簡単な概要 Django は、システムを通じてステータスを渡すために、リクエストとレスポンスのオブジェクトを使います。 あるページがリクエストされたとき、Django はリクエストに関するメタデータを含んだ HttpRequest ... 、ヘッダーはハイフンの代わりにアンダースコアを使用してもルックアップできます。 {{ request.headers.user_agent }} HttpRequest. resolver_match 解決されたURLを表す ResolverMatch のインスタンスです。この属性は、URLの解決が行われた後にのみ設定されます。つまり、全 ...
https://man.mtool.work/django/6.1/ref/request-response.html
設定 7356
設定 警告 設定を上書きするとき、特にデフォルト値が空でないリストや辞書の場合、例えば STATICFILES_FINDERS などは、注意してください。Djangoの使用したい機能に必要なコンポーネントを保持するようにしてください。 コアの設定 ここでは、Django の cor ... may be a rewritten version of the preferred value or not supplied at all. It is also used by django.setup() to set the URL resolver script prefix outside of the request/response cycle (e.g. in management commands and standalone scripts) to generate corre ...
https://man.mtool.work/django/6.1/ref/settings.html
PREV 1 NEXT