検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 53 for URLconf (0.022 sec.)
URL ディスパッチャ — Django 4.0.6 ドキュメント 14958
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 。 概要 ¶ アプリケーションのURLを設計するには、俗に URLconf (URL configuration) と呼ばれる Python モジュールを ... 定されます。 まず、Django は、どのモジュールをルート URLconf として使うか決定します。通常は、この値は ROOT_URLC ... 定されています。ただし、 HttpRequest オブジェクトに urlconf という属性が設定されていた場合 ( middleware で設定 ... されます) 、その値を ROOT_URLCONF の代わりに使います。 Django はその Python モジュー ...
https://man.plustar.jp/django/topics/http/urls.html - [similar]
Django 1.4 documentation 11058
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... グやフィルタを自作するには ビュー層 ¶ ビューの基本: URLconf とは | ビュー関数とは | 便利なショートカット | デコ ... ん。 特定のアプリケーション用の URL を設計するには、 URLconf と呼ばれる Python モジュールを一つ作成します。 URL ... ンを Python のコールバッ ク関数に対応づけています。 URLconf はまた、 URL を Python コードと脱カップ リングする ... 働きを持っています。 Reporter / Article の例では、 URLconf は以下のようになります: from django.conf.urls impo ...
https://man.plustar.jp/django/contents.html - [similar]
django.urls utility functions — Django 4.0.6 ドキュメント 10686
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... vides the following function: reverse ( viewname , urlconf = None , args = None , kwargs = None , current_app ... ng to the namespaced URL resolution strategy . The urlconf argument is the URLconf module containing the URL ... atterns to use for reversing. By default, the root URLconf for the current thread is used. 注釈 The string re ... d version of reverse() . reverse_lazy ( viewname , urlconf = None , args = None , kwargs = None , current_app ...
https://man.plustar.jp/django/ref/urlresolvers.html - [similar]
はじめての Django アプリ作成、その 1 — Django 4.0.6 ドキュメント 9347
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... URL を対応付けしてやる必要があります。そのためには URLconf が必要です。 polls ディレクトリに URLconf を作るに ... index , name = 'index' ), ] 次のステップはルートのURLconfに polls.urls モジュールの記述を反映させることです。 ... /' , admin . site . urls ), ] include() 関数は他の URLconf への参照することができます。 Django が include() に ... し、次の処理のために残りの文字列をインクルードされた URLconf へ渡します。 include() の背景にある考えは、 URL を ...
https://man.plustar.jp/django/intro/tutorial01.html - [similar]
クラスベースビュー — Django 4.0.6 ドキュメント 9168
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... てテンプレートもレンダリングできるようにしています。 URLconfでの使用法 ¶ 汎用ビューを使用する最も直接的な方法は、 ... mplate_name = "about.html" 次に、この新しいビューをURLconfに追加する必要があります。 TemplateView は関数ではな ... 問い合わせた方が好ましいかもしれません。 そのために、URLconf 内で、本のリストビューへの URL を次のようにマッピン ... かを判断します。 目次 クラスベースビュー 基本的な例 URLconfでの使用法 ジェネリックビューのサブクラス化 その他の ...
https://man.plustar.jp/django/topics/class-based-views/index.html - [similar]
Built-in Views — Django 4.0.6 ドキュメント 9064
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... EDIA_ROOT by appending something like this to your URLconf: from django.conf import settings from django.urls ... o.views.static import serve # ... the rest of your URLconf goes here ... if settings . DEBUG : urlpatterns += ... all the serve() view, passing in the path from the URLconf and the (required) document_root parameter. Since ... tch after checking every regular expression in the URLconf. The 404 view is passed a RequestContext and will ...
https://man.plustar.jp/django/ref/views.html - [similar]
The sitemap framework — Django 4.0.6 ドキュメント 8588
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... map, write a Sitemap class and point to it in your URLconf . インストール ¶ To install the sitemap app, follo ... eration on your Django site, add this line to your URLconf : from django.contrib.sitemaps.views import sitema ... all URLs. カスタマイズ例 ¶ Here's an example of a URLconf using GenericSitemap : from django.contrib.sitemap ... ifferences in usage are: You use two views in your URLconf: django.contrib.sitemaps.views.index() and django. ...
https://man.plustar.jp/django/ref/contrib/sitemaps.html - [similar]
The flatpages app — Django 4.0.6 ドキュメント 8394
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ED_APPS setting. Then either: Add an entry in your URLconf. For example: urlpatterns = [ path ( 'pages/' , in ... sites associates a flatpage with a site. Using the URLconf ¶ There are several ways to include the flat pages ... in your URLconf. You can dedicate a particular path to flat pages: ... priority . カスタマイズ例 ¶ Here's an example of a URLconf using FlatPageSitemap : from django.contrib.flatpa ...
https://man.plustar.jp/django/ref/contrib/flatpages.html - [similar]
ビルトインのクラスベースのジェネリックビュー — Django 4.0.6 ドキュメント 8111
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... トを表示するコードを書きます。そして、対象のモデルを URLconf から追加の引数として渡します。 Django のジェネリッ ... す。新しく出版社のページを追加する必要が生じるたびにURLconf に数行を追加する必要があるので、これでは数社以上追 ... をフィルタリングすることです。上の例では、出版社名を URLconf にハードコーディングしてしまっていましたが、もし任 ... args )、そして、キーワード引数 ( self.kwargs ) が、URLconf からキャプチャされてきています。 ここでは、次のよう ...
https://man.plustar.jp/django/topics/class-based-views/generic-display.html - [similar]
はじめての Django アプリ作成、その 4 — Django 4.0.6 ドキュメント 8022
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... リアルその 3 で、以下のような投票アプリケーションの URLconf を作成したことを思い出しましょう: polls/urls.py ¶ ... えます。この例では、 チュートリアルその 3 で設定した URLconf を使っているので、 reverse() を呼ぶと、次のような文 ... はほんの数ステップしかか かりません。そのステップは: URLconf を変換する。 古い不要なビューを削除する。 新しいビ ... に、算数の基本を知っておかねばならないのと同じです。 URLconf の修正 ¶ まず、 URLconf の polls/urls.py を開き、次 ...
https://man.plustar.jp/django/intro/tutorial04.html - [similar]
PREV 1 2 3 4 5 6 NEXT