per page, with , order by , clip by
Results of 1 - 8 of about 8 for span (0.006 sec.)
ページ分割 (Pagination) 11748
ページ分割 (Pagination) Django は、ページ分割 (ページネーション) されたデータを管理するための高レベルと低レベルの方法を提供しています。つまり、"前へ/次へ" リンクを持つ、複数のページに分割されたデータです。 Paginator クラス 内部では、ページ分 ... tact" is a Contact model object. #} {{ contact.full_name | upper }} < br > ... {% endfor %} < div class = "pagination" > < span class = "step-links" > {% if page_obj.has_previous %} < a href = "?page=1" > &laquo; first </ a > < a href = "?page= {{ pa ... ge_obj.previous_page_number }} " > previous </ a > {% endif %} < span class = "current" > Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }} . </ span > {% if page_obj.has_next % ... age_number }} " > next </ a > < a href = "?page= {{ page_obj.paginator.num_pages }} " > last &raquo; </ a > {% endif %} </ span > </ div > Paginator をビュー関数で使用する 以下は、queryset をページ分割するビュー関数内の Paginator の一例です。 from dj ...
https://man.mtool.work/django/6.1/topics/pagination.html
ウィジェット 11332
ウィジェット ウィジェットは、Django が HTML の input 要素の表現方法です。ウィジェットは、HTML のレンダリングをコントロールして、ウィジェットに合致する GET/POST ディクショナリからデータを取り出します。 Built-in widgets によって作られる HTML ... l }} </ legend > {% for radio in myform.beatles %} < label for = " {{ radio.id_for_label }} " > {{ radio.choice_label }} < span class = "radio" > {{ radio.tag }} </ span > </ label > {% endfor %} </ fieldset > ...次のHTMLを生成します: < fieldset > < ... legend > Radio buttons </ legend > < label for = "id_beatles_0" > John < span class = "radio" >< input id = "id_beatles_0" name = "beatles" type = "radio" value = "john" required ></ span > </ label > ... < label for = "id_beatles_1" > Paul < span class = "radio" >< input id = "id_beatles_1" name = "beatles" type = "radio" value = "paul" required ></ span > </ label > ...
https://man.mtool.work/django/6.1/ref/forms/widgets.html
全文検索 10718
全文検索 django.contrib.postgres.search モジュールのデータベース関数は PostgreSQL の 全文検索エンジン を利用しやすくしています。 このドキュメントの例では、 クエリを作成する で定義されたモデルを使用します。 参考 検索の概要については、 トピッ ... ) >>> entry = Entry . objects . annotate ( ... headline = SearchHeadline ( ... "body_text" , ... query , ... start_sel = "<span>" , ... stop_sel = "</span>" , ... ), ... ) . get () >>> print ( entry . headline ) Sandwich with <span>tomato</span> and ... <span>red</span> cheese. config パラメータの説明については、 検索設定を変更する を参照してください。 検索設定を変更する SearchVe ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/search.html
クラスベースのビューでミックスイン (mixin) を使用する 8675
クラスベースのビューでミックスイン (mixin) を使用する 注意 This is an advanced topic. A working knowledge of Django's class-based views is advised before exploring these techniques. Django のビルトインのクラスベースビューではたくさんの機能が ... h2 > < ol > {% for book in page_obj %} < li > {{ book.title }} </ li > {% endfor %} </ ol > < div class = "pagination" > < span class = "step-links" > {% if page_obj.has_previous %} < a href = "?page= {{ page_obj.previous_page_number }} " > previous ... </ a > {% endif %} < span class = "current" > Page {{ page_obj.number }} of {{ paginator.num_pages }} . </ span > {% if page_obj.has_next %} < a hre ... f = "?page= {{ page_obj.next_page_number }} " > next </ a > {% endif %} </ span > </ div > {% endblock %} これより複雑なことはやめておきましょう 一般的に必要な機能は、 TemplateResponseMixin や SingleObj ...
https://man.mtool.work/django/6.1/topics/class-based-views/mixins.html
Django の admin サイト 7844
Django の admin サイト Django のパワフルな特徴の1つは、自動的に生成される admin インタフェースです。あなたのモデルクラスからメタデータを読み取り、モデル中心のインタフェースを提供します。このインタフェースのおかげで、ユーザはあなたのサイトの ... 50 ) color_code = models . CharField ( max_length = 6 ) @admin . display def colored_name ( self ): return format_html ( '<span style="color: # {} ;"> {} {} </span>' , self . color_code , self . first_name , self . last_name , ) class PersonAdmin ( a ... ld ( max_length = 6 ) @admin . display ( ordering = "first_name" ) def colored_first_name ( self ): return format_html ( '<span style="color: # {} ;"> {} </span>' , self . color_code , self . first_name , ) class PersonAdmin ( admin . ModelAdmin ): l ... rmat_html_join ( mark_safe ( "<br>" ), " {} " , (( line ,) for line in instance . get_full_address ()), ) or mark_safe ( "<span class='errors'>I can't determine this address.</span>" ) ModelAdmin. save_as admin のチェンジーフォームで "新規に保存" 機能 ...
https://man.mtool.work/django/6.1/ref/contrib/admin/
Pythonモジュール索引 7645
Pythonモジュール索引 a | c | d | f | h | m | s | t | u | v a django.apps c django.conf django.conf.urls django.conf.urls.i18n django.contrib django.contrib.admin Django's admin site. django.contrib.admindocs Django's admin documentation gen ... ection based on the request. django.middleware.security Security middleware. s django.shortcuts Convenience shortcuts that span multiple levels of Django's MVC stack. t django.tasks Django's built-in background Task system. django.tasks.backends.base ...
https://man.mtool.work/django/6.1/py-modindex.html
Django ユーティリティ (django.utils) 7229
Django ユーティリティ ( django.utils ) このドキュメントは、 django.utils のすべての安定したモジュールを対象としています。 django.utils 内のほとんどのモジュールは内部使用を目的としていることから、 内部リリース非推奨ポリシー に従い、以下に記載 ... s 呼び出しの結果を決してセーフと扱ってはいけません。 例: strip_tags ( value ) value が "<b>Joel</b> <button>is</button> a <span>slug</span>" の場合、戻り値は "Joel is a slug" になります。 より堅牢なソリューションを探している場合は、サードパーティ製の ...
https://man.mtool.work/django/6.1/ref/utils.html
組み込みテンプレートタグとフィルタ 7030
組み込みテンプレートタグとフィルタ このドキュメントでは、 Django の組み込みテンプレートタグとフィルタについて述べます。 また 自動ドキュメンテーション を使えばインストールされている組み込みタグとカスタムタグのドキュメントを読めるのでお勧めで ... triptags [X]HTML タグを全てはぎとるようにします。 例: {{ value | striptags }} value が "<b>Joel</b> <button>is</button> a <span>slug</span>" であるとき、出力は "Joel is a slug" となります。 安全性の保証はありません 注意してください。 striptags の出力 ...
https://man.mtool.work/django/6.1/ref/templates/builtins.html
PREV 1 NEXT