per page, with , order by , clip by
Results of 1 - 10 of about 78 for urlpatterns (0.005 sec.)
URL ディスパッチャ — Django 6.1 ドキュメント 14146
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » URL ディスパッチャ ¶ すっきりした、簡潔で明解な URL スキームは、高品質な Web アプリケーションでは重要な要素です。 Django では、フレームワークの制限な ... 場合 ( middleware で設定されます) 、その値を ROOT_URLCONF の代わりに使います。 Django はその Python モジュールをロードして、 urlpatterns という名前の変数を探します。この変数の値は django.urls.path() または django.urls.re_path() インスタンスの sequence でなけれ ... Error handling を見てください。 カスタマイズ例 ¶ URLconf のサンプルです。 from django.urls import path from . import views urlpatterns = [ path ( "articles/2003/" , views . special_case_2003 ), path ( "articles/<int:year>/" , views . year_archive ), path ( ... , register_converter from . import converters , views register_converter ( converters . FourDigitYearConverter , "yyyy" ) urlpatterns = [ path ( "articles/2003/" , views . special_case_2003 ), path ( "articles/<yyyy:year>/" , views . year_archive ), ... , ...
https://man.mtool.work/django/6.1/topics/http/urls.html
URL ディスパッチャ — Django 6.1 ドキュメント 14146
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » URL ディスパッチャ ¶ すっきりした、簡潔で明解な URL スキームは、高品質な Web アプリケーションでは重要な要素です。 Django では、フレームワークの制限な ... 場合 ( middleware で設定されます) 、その値を ROOT_URLCONF の代わりに使います。 Django はその Python モジュールをロードして、 urlpatterns という名前の変数を探します。この変数の値は django.urls.path() または django.urls.re_path() インスタンスの sequence でなけれ ... Error handling を見てください。 カスタマイズ例 ¶ URLconf のサンプルです。 from django.urls import path from . import views urlpatterns = [ path ( "articles/2003/" , views . special_case_2003 ), path ( "articles/<int:year>/" , views . year_archive ), path ( ... , register_converter from . import converters , views register_converter ( converters . FourDigitYearConverter , "yyyy" ) urlpatterns = [ path ( "articles/2003/" , views . special_case_2003 ), path ( "articles/<yyyy:year>/" , views . year_archive ), ... , ...
https://man.mtool.work/django/6.1/topics/http/urls.html
URLconf で使用するための django.urls 関数 — Django 6.1 ドキュメント 9146
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » URLconf で使用するための django.urls 関数 ¶ path() ¶ path ( route , view , kwargs = None , name = None ) ¶ urlpatterns に含める要素を返します。例えば ... : from django.urls import include , path urlpatterns = [ path ( "index/" , views . index , name = "main-view" ), path ( "bio/<username>/" , views . bio , name = "bio" ), path ... mple, <int:section> matches a string of decimal digits and converts the value to an int . リクエストを処理する際、Djangoは urlpatterns の最初のパターンから処理を開始し、リストを順番に進みながら、リクエストされたURLと各パターンを比較します。一致するパターンが ... 由については、 URL パターンの命名 を参照してください。 re_path() ¶ re_path ( route , view , kwargs = None , name = None ) ¶ urlpatterns に含める要素を返します。例えば: from django.urls import include , re_path urlpatterns = [ re_path ( r "^index/$" , views . ...
https://man.mtool.work/django/6.1/ref/urls.html
URLconf で使用するための django.urls 関数 — Django 6.1 ドキュメント 9146
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » URLconf で使用するための django.urls 関数 ¶ path() ¶ path ( route , view , kwargs = None , name = None ) ¶ urlpatterns に含める要素を返します。例えば ... : from django.urls import include , path urlpatterns = [ path ( "index/" , views . index , name = "main-view" ), path ( "bio/<username>/" , views . bio , name = "bio" ), path ... mple, <int:section> matches a string of decimal digits and converts the value to an int . リクエストを処理する際、Djangoは urlpatterns の最初のパターンから処理を開始し、リストを順番に進みながら、リクエストされたURLと各パターンを比較します。一致するパターンが ... 由については、 URL パターンの命名 を参照してください。 re_path() ¶ re_path ( route , view , kwargs = None , name = None ) ¶ urlpatterns に含める要素を返します。例えば: from django.urls import include , re_path urlpatterns = [ re_path ( r "^index/$" , views . ...
https://man.mtool.work/django/6.1/ref/urls.html
ジェネリック日付ビュー — Django 6.1 ドキュメント 8333
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ジェネリック日付ビュー ¶ 日付ベースのジェネリックビュー ( django.views.generic.dates 内で提供されています) は、日付ベースのデータのために、ドリルダウ ... py : from django.urls import path from django.views.generic.dates import ArchiveIndexView from myapp.models import Article urlpatterns = [ path ( "archive/" , ArchiveIndexView . as_view ( model = Article , date_field = "pub_date" ), name = "article_archive" ... = True allow_future = True 例 myapp/urls.py : from django.urls import path from myapp.views import ArticleYearArchiveView urlpatterns = [ path ( "<int:year>/" , ArticleYearArchiveView . as_view (), name = "article_year_archive" ), ] 例 myapp/article_archiv ... _date" allow_future = True 例 myapp/urls.py : from django.urls import path from myapp.views import ArticleMonthArchiveView urlpatterns = [ # Example: /2012/08/ path ( "<int:year>/<int:month>/" , ArticleMonthArchiveView . as_view ( month_format = "%m" ), nam ...
https://man.mtool.work/django/6.1/ref/class-based-views/generic-date-based.html
ジェネリック日付ビュー — Django 6.1 ドキュメント 8333
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ジェネリック日付ビュー ¶ 日付ベースのジェネリックビュー ( django.views.generic.dates 内で提供されています) は、日付ベースのデータのために、ドリルダウ ... py : from django.urls import path from django.views.generic.dates import ArchiveIndexView from myapp.models import Article urlpatterns = [ path ( "archive/" , ArchiveIndexView . as_view ( model = Article , date_field = "pub_date" ), name = "article_archive" ... = True allow_future = True 例 myapp/urls.py : from django.urls import path from myapp.views import ArticleYearArchiveView urlpatterns = [ path ( "<int:year>/" , ArticleYearArchiveView . as_view (), name = "article_year_archive" ), ] 例 myapp/article_archiv ... _date" allow_future = True 例 myapp/urls.py : from django.urls import path from myapp.views import ArticleMonthArchiveView urlpatterns = [ # Example: /2012/08/ path ( "<int:year>/<int:month>/" , ArticleMonthArchiveView . as_view ( month_format = "%m" ), nam ...
https://man.mtool.work/django/6.1/ref/class-based-views/generic-date-based.html
フラットページ (flatpages) アプリ — Django 6.1 ドキュメント 8333
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フラットページ (flatpages) アプリ ¶ Django にはオプションで "flatpages" アプリケーションが付属しています。これを使えば、"フラットな" HTML コンテンツ ... latpages' を追加してください。 そして、下記のいずれかを行います: URLconf にエントリを追加します。例えば、次のようにします: urlpatterns = [ path ( "pages/" , include ( "django.contrib.flatpages.urls" )), ] または: django.contrib.flatpages.middleware.Flatpage ... フラットページをURLconfに含める方法はいくつかあります。以下のように、特定のパスをフラットページに割り当てることができます。 urlpatterns = [ path ( "pages/" , include ( "django.contrib.flatpages.urls" )), ] 「キャッチオール」パターンとして設定することもできま ... す。この場合、そのパターンを他の urlpatterns の最後に配置することが重要です。 from django.contrib.flatpages import views # Your other patterns here urlpatterns += [ re ...
https://man.mtool.work/django/6.1/ref/contrib/flatpages.html
フラットページ (flatpages) アプリ — Django 6.1 ドキュメント 7934
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フラットページ (flatpages) アプリ ¶ Django にはオプションで "flatpages" アプリケーションが付属しています。これを使えば、"フラットな" HTML コンテンツ ... latpages' を追加してください。 そして、下記のいずれかを行います: URLconf にエントリを追加します。例えば、次のようにします: urlpatterns = [ path ( "pages/" , include ( "django.contrib.flatpages.urls" )), ] または: django.contrib.flatpages.middleware.Flatpage ... フラットページをURLconfに含める方法はいくつかあります。以下のように、特定のパスをフラットページに割り当てることができます。 urlpatterns = [ path ( "pages/" , include ( "django.contrib.flatpages.urls" )), ] 「キャッチオール」パターンとして設定することもできま ... す。この場合、そのパターンを他の urlpatterns の最後に配置することが重要です。 from django.contrib.flatpages import views # Your other patterns here urlpatterns += [ re ...
https://man.mtool.work/django/6.1/ref/contrib/flatpages.html
サイトマップ・フレームワーク — Django 6.1 ドキュメント 7424
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » サイトマップ・フレームワーク ¶ Djangoには、 sitemap XML ファイルを作成するための高レベルなサイトマップ生成フレームワークが付属しています。 概要 ¶ サ ... port path from blog.models import Entry info_dict = { "queryset" : Entry . objects . all (), "date_field" : "pub_date" , } urlpatterns = [ # some generic view using info_dict # ... # the sitemap path ( "sitemap.xml" , sitemap , { "sitemaps" : { "blog" : Gen ... urls import path from .sitemaps import StaticViewSitemap from . import views sitemaps = { "static" : StaticViewSitemap , } urlpatterns = [ path ( "" , views . main , name = "main" ), path ( "about/" , views . about , name = "about" ), path ( "license/" , vi ... 数を受け取るべきです。 上記の例に対する関連するURLconfの行は、次のようになります: from django.contrib.sitemaps import views urlpatterns = [ path ( "sitemap.xml" , views . index , { "sitemaps" : sitemaps }, name = "django.contrib.sitemaps.views.index" , ), pa ...
https://man.mtool.work/django/6.1/ref/contrib/sitemaps.html
サイトマップ・フレームワーク — Django 6.1 ドキュメント 7424
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » サイトマップ・フレームワーク ¶ Djangoには、 sitemap XML ファイルを作成するための高レベルなサイトマップ生成フレームワークが付属しています。 概要 ¶ サ ... port path from blog.models import Entry info_dict = { "queryset" : Entry . objects . all (), "date_field" : "pub_date" , } urlpatterns = [ # some generic view using info_dict # ... # the sitemap path ( "sitemap.xml" , sitemap , { "sitemaps" : { "blog" : Gen ... urls import path from .sitemaps import StaticViewSitemap from . import views sitemaps = { "static" : StaticViewSitemap , } urlpatterns = [ path ( "" , views . main , name = "main" ), path ( "about/" , views . about , name = "about" ), path ( "license/" , vi ... 数を受け取るべきです。 上記の例に対する関連するURLconfの行は、次のようになります: from django.contrib.sitemaps import views urlpatterns = [ path ( "sitemap.xml" , views . index , { "sitemaps" : sitemaps }, name = "django.contrib.sitemaps.views.index" , ), pa ...
https://man.mtool.work/django/6.1/ref/contrib/sitemaps.html
PREV 1 2 3 4 5 6 7 8 NEXT