per page, with , order by , clip by
Results of 1 - 10 of about 34 for news (0.007 sec.)
翻訳 — Django 6.1 ドキュメント 10992
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 翻訳 ¶ 概要 ¶ Django プロジェクトを翻訳可能にするためには、Python コードやテンプレートに、多少のフックを加筆しなければなりません。このフックは 翻訳文 ... ngo.conf.urls.i18n import i18n_patterns from django.urls import include , path from about import views as about_views from news import views as news_views from sitemap.views import sitemap urlpatterns = [ path ( "sitemap.xml" , sitemap , name = "site ... map-xml" ), ] news_patterns = ( [ path ( "" , news_views . index , name = "index" ), path ( "category/<slug:slug>/" , news_views . category , ... name = "category" ), path ( "<slug:slug>/" , news_views . details , name = "detail" ), ], "news" , ) urlpatterns += i18n_patterns ( path ( "about/" , about_views . main , n ...
https://man.mtool.work/django/6.1/topics/i18n/translation.html
翻訳 — Django 6.1 ドキュメント 10992
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 翻訳 ¶ 概要 ¶ Django プロジェクトを翻訳可能にするためには、Python コードやテンプレートに、多少のフックを加筆しなければなりません。このフックは 翻訳文 ... ngo.conf.urls.i18n import i18n_patterns from django.urls import include , path from about import views as about_views from news import views as news_views from sitemap.views import sitemap urlpatterns = [ path ( "sitemap.xml" , sitemap , name = "site ... map-xml" ), ] news_patterns = ( [ path ( "" , news_views . index , name = "index" ), path ( "category/<slug:slug>/" , news_views . category , ... name = "category" ), path ( "<slug:slug>/" , news_views . details , name = "detail" ), ], "news" , ) urlpatterns += i18n_patterns ( path ( "about/" , about_views . main , n ...
https://man.mtool.work/django/6.1/topics/i18n/translation.html
多対多 (many-to-many) 関係 — Django 6.1 ドキュメント 10912
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 多対多 (many-to-many) 関係 ¶ 多対多の関係を定義するには、 ManyToManyField を使用します。 この例では、一つの Article は複数の Publication オブジェクト ... つか作ります: >>> p1 = Publication ( title = "The Python Journal" ) >>> p1 . save () >>> p2 = Publication ( title = "Science News" ) >>> p2 . save () >>> p3 = Publication ( title = "Science Weekly" ) >>> p3 . save () Article を一つ作ります: >>> a1 = Ar ... Python Journal>]> >>> a2 . publications . all () <QuerySet [<Publication: Highlights for Children>, <Publication: Science News>, <Publication: Science Weekly>, <Publication: The Python Journal>]> Publication オブジェクトはリレーション先の Article オ ... filter ( article__headline__startswith = "NASA" ) <QuerySet [<Publication: Highlights for Children>, <Publication: Science News>, <Publication: Science Weekly>, <Publication: The Python Journal>]> >>> Publication . objects . filter ( article__id = 1 ...
https://man.mtool.work/django/6.1/topics/db/examples/many_to_many.html
多対多 (many-to-many) 関係 — Django 6.1 ドキュメント 10912
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 多対多 (many-to-many) 関係 ¶ 多対多の関係を定義するには、 ManyToManyField を使用します。 この例では、一つの Article は複数の Publication オブジェクト ... つか作ります: >>> p1 = Publication ( title = "The Python Journal" ) >>> p1 . save () >>> p2 = Publication ( title = "Science News" ) >>> p2 . save () >>> p3 = Publication ( title = "Science Weekly" ) >>> p3 . save () Article を一つ作ります: >>> a1 = Ar ... Python Journal>]> >>> a2 . publications . all () <QuerySet [<Publication: Highlights for Children>, <Publication: Science News>, <Publication: Science Weekly>, <Publication: The Python Journal>]> Publication オブジェクトはリレーション先の Article オ ... filter ( article__headline__startswith = "NASA" ) <QuerySet [<Publication: Highlights for Children>, <Publication: Science News>, <Publication: Science Weekly>, <Publication: The Python Journal>]> >>> Publication . objects . filter ( article__id = 1 ...
https://man.mtool.work/django/6.1/topics/db/examples/many_to_many.html
Django の概要 — Django 6.1 ドキュメント 10832
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django の概要 ¶ Django は変転の激しいニュースルーム環境で開発された経緯から、よくある Web 開発タスクを迅速かつ簡単化するように設計されています。ここ ... されています。これまでのところ、長年におけるデータベーススキーマの問題を解決してきた実績があります。 簡単な例を示しましょう: news/models.py ¶ from django.db import models class Reporter ( models . Model ): full_name = models . CharField ( max_length = ... にアクセスできます。API はオンザフライで生成され、コードを作成する必要はありません: # Import the models we created from our "news" app >>> from news.models import Article , Reporter # No reporters are in the system yet. >>> Reporter . objects . all () ... ブジェクトを追加、変更、削除できるウェブサイトを作成できます。必要なステップは、管理サイトにモデルを登録することだけです。: news/models.py ¶ from django.db import models class Article ( models . Model ): pub_date = models . DateField () headline = mod ...
https://man.mtool.work/django/6.1/intro/overview.html
Django の概要 — Django 6.1 ドキュメント 10832
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django の概要 ¶ Django は変転の激しいニュースルーム環境で開発された経緯から、よくある Web 開発タスクを迅速かつ簡単化するように設計されています。ここ ... されています。これまでのところ、長年におけるデータベーススキーマの問題を解決してきた実績があります。 簡単な例を示しましょう: news/models.py ¶ from django.db import models class Reporter ( models . Model ): full_name = models . CharField ( max_length = ... にアクセスできます。API はオンザフライで生成され、コードを作成する必要はありません: # Import the models we created from our "news" app >>> from news.models import Article , Reporter # No reporters are in the system yet. >>> Reporter . objects . all () ... ブジェクトを追加、変更、削除できるウェブサイトを作成できます。必要なステップは、管理サイトにモデルを登録することだけです。: news/models.py ¶ from django.db import models class Article ( models . Model ): pub_date = models . DateField () headline = mod ...
https://man.mtool.work/django/6.1/intro/overview.html
サイトマップ・フレームワーク — Django 6.1 ドキュメント 10177
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » サイトマップ・フレームワーク ¶ Djangoには、 sitemap XML ファイルを作成するための高レベルなサイトマップ生成フレームワークが付属しています。 概要 ¶ サ ... す。 サイトマップビューは追加の必須引数を取ります: {'sitemaps': sitemaps} . sitemaps は短いセクションラベル (例えば blog や news ) を Sitemap クラス (例えば BlogSitemap や NewsSitemap ) にマップする辞書です。また、 Sitemap クラスの インスタンス (例えば ... です。 The item attribute has been added for each URL to allow more flexible customization of the templates, such as Google news sitemaps . Assuming Sitemap's items() would return a list of items with publication_data and a tags field something like t ... his would generate a Google News compatible sitemap: <?xml version="1.0" encoding="UTF-8"?> <urlset xmlns= "https://www.sitemaps.org/schemas/sitemap/0.9" x ...
https://man.mtool.work/django/6.1/ref/contrib/sitemaps.html
サイトマップ・フレームワーク — Django 6.1 ドキュメント 10177
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » サイトマップ・フレームワーク ¶ Djangoには、 sitemap XML ファイルを作成するための高レベルなサイトマップ生成フレームワークが付属しています。 概要 ¶ サ ... す。 サイトマップビューは追加の必須引数を取ります: {'sitemaps': sitemaps} . sitemaps は短いセクションラベル (例えば blog や news ) を Sitemap クラス (例えば BlogSitemap や NewsSitemap ) にマップする辞書です。また、 Sitemap クラスの インスタンス (例えば ... です。 The item attribute has been added for each URL to allow more flexible customization of the templates, such as Google news sitemaps . Assuming Sitemap's items() would return a list of items with publication_data and a tags field something like t ... his would generate a Google News compatible sitemap: <?xml version="1.0" encoding="UTF-8"?> <urlset xmlns= "https://www.sitemaps.org/schemas/sitemap/0.9" x ...
https://man.mtool.work/django/6.1/ref/contrib/sitemaps.html
django.urls ユーティリティ関数 — Django 6.1 ドキュメント 8771
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » django.urls ユーティリティ関数 ¶ reverse() ¶ reverse() 関数は指定したビューと任意のパラメータに対して、 url タグと同様に、絶対パス参照を返すために使 ... onf で使用される呼び出し可能なビューオブジェクトを指定できます。たとえば、下記の url が与えられている場合を考えます。 from news import views path ( "archive/" , views . archive , name = "news-archive" ) URL を逆引きするために、以下の方法を使用できます ... : # using the named URL reverse ( "news-archive" ) # passing a callable object # (This is discouraged because you can't reverse namespaced views this way.) from n ... ューオブジェクトは as_view() を呼び出した結果でもかまいません。元の例に従うと、ビューオブジェクトは次のように定義できます。 news/views.py ¶ from django.views import View class ArchiveView ( View ): ... archive = ArchiveView . as_view () ただし、名前空 ...
https://man.mtool.work/django/6.1/ref/urlresolvers.html
django.urls ユーティリティ関数 — Django 6.1 ドキュメント 8356
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » django.urls ユーティリティ関数 ¶ reverse() ¶ reverse() 関数は指定したビューと任意のパラメータに対して、 url タグと同様に、絶対パス参照を返すために使 ... onf で使用される呼び出し可能なビューオブジェクトを指定できます。たとえば、下記の url が与えられている場合を考えます。 from news import views path ( "archive/" , views . archive , name = "news-archive" ) URL を逆引きするために、以下の方法を使用できます ... : # using the named URL reverse ( "news-archive" ) # passing a callable object # (This is discouraged because you can't reverse namespaced views this way.) from n ... ューオブジェクトは as_view() を呼び出した結果でもかまいません。元の例に従うと、ビューオブジェクトは次のように定義できます。 news/views.py ¶ from django.views import View class ArchiveView ( View ): ... archive = ArchiveView . as_view () ただし、名前空 ...
https://man.mtool.work/django/6.1/ref/urlresolvers.html
PREV 1 2 3 4 NEXT