per page, with , order by , clip by
Results of 1 - 10 of about 26 for href (0.005 sec.)
フォームアセット (Media クラス) 15539
フォームアセット ( Media クラス) 魅力的で使いやすいウェブのフォームを作るには、HTML だけでは不十分です。CSS スタイルシートも必要です。さらに豪華なウィジェットを使いたければ、JavaScript を各ページに配置する必要もあるでしょう。あるページに必要 ... et インスタンスのアセットリストは、このプロパティから取得できます: >>> w = CalendarWidget () >>> print ( w . media ) <link href="https://static.example.com/pretty.css" media="all" rel="stylesheet"> <script src="https://static.example.com/animations.j ... " : [ "lo_res.css" ], "print" : [ "newspaper.css" ], } 上記のCSS定義をレンダリングすると、次のようなHTMLになります: < link href = "https://static.example.com/pretty.css" media = "screen" rel = "stylesheet" > < link href = "https://static.example.com/ ... lo_res.css" media = "tv,projector" rel = "stylesheet" > < link href = "https://static.example.com/newspaper.css" media = "print" rel = "stylesheet" > Stylesheet objects New in Django 6.1. cl ...
https://man.mtool.work/django/6.1/topics/forms/media.html
ページ分割 (Pagination) 10381
ページ分割 (Pagination) Django は、ページ分割 (ページネーション) されたデータを管理するための高レベルと低レベルの方法を提供しています。つまり、"前へ/次へ" リンクを持つ、複数のページに分割されたデータです。 Paginator クラス 内部では、ページ分 ... r }} < br > ... {% endfor %} < div class = "pagination" > < span class = "step-links" > {% if page_obj.has_previous %} < a href = "?page=1" > &laquo; first </ a > < a href = "?page= {{ page_obj.previous_page_number }} " > previous </ a > {% endif %} ... = "current" > Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }} . </ span > {% if page_obj.has_next %} < a href = "?page= {{ page_obj.next_page_number }} " > next </ a > < a href = "?page= {{ page_obj.paginator.num_pages }} " > last & ...
https://man.mtool.work/django/6.1/topics/pagination.html
組み込みテンプレートタグとフィルタ 9340
組み込みテンプレートタグとフィルタ このドキュメントでは、 Django の組み込みテンプレートタグとフィルタについて述べます。 また 自動ドキュメンテーション を使えばインストールされている組み込みタグとカスタムタグのドキュメントを読めるのでお勧めで ... d Content Security Policy: < script src = "/path/to/script.js" {% csp_nonce_attr %} ></ script > < link rel = "stylesheet" href = "/path/to/style.css" {% csp_nonce_attr %} > When called with a Media object as the argument, renders its assets with the ... for {{ year }} </ h1 > {% for date in days %} {% ifchanged %} < h3 > {{ date | date :"F" }} </ h3 > {% endifchanged %} < a href = " {{ date | date :"M/d" | lower }} /" > {{ date | date :"j" }} </ a > {% endfor %} タグに 1 個以上の変数が与えられている ... spaceless ブロック内の HTML タグ間にある空白文字を除去します。タブ文字や改行も含みます。 使用例: {% spaceless %} < p > < a href = "foo/" > Foo </ a > </ p > {% endspaceless %} 上記の例は以下のようなHTMLを返します: < p >< a href = "foo/" > Foo </ a >< ...
https://man.mtool.work/django/6.1/ref/templates/builtins.html
Django テンプレート言語 9207
Django テンプレート言語 このドキュメントはDjangoテンプレートシステムの文法を説明しています。もしあなたがもっと技術者的な観点でどう動かすかやどう拡張するかを知りたい場合は、 Python プログラマーのための Django テンプレート言語 を参照してくださ ... ion.title }}{% endblock %} {% block content %} < h1 > {{ section.title }} </ h1 > {% for story in story_list %} < h2 > < a href = " {{ story.get_absolute_url }} " > {{ story.headline | upper }} </ a > </ h2 > < p > {{ story.tease | truncatewords :"10 ... テンプレートの継承について、まず例を見てみましょう: <!DOCTYPE html> < html lang = "en" > < head > < link rel = "stylesheet" href = "style.css" > < title > {% block title %} My amazing site {% endblock %} </ title > </ head > < body > < div id = "sideb ... ar" > {% block sidebar %} < ul > < li >< a href = "/" > Home </ a ></ li > < li >< a href = "/blog/" > Blog </ a ></ li > </ ul > {% endblock %} </ div > < div id = "cont ...
https://man.mtool.work/django/6.1/ref/templates/language.html
はじめての Django アプリ作成、その 3 9092
はじめての Django アプリ作成、その 3 このチュートリアルは チュートリアルその 2 の続きです。ここでは、引続き Web 投票アプリケーションの開発を例にして、公開用のインタフェース、ビュー(view) の作成を焦点に解説します。 困ったときは: このチュート ... polls/templates/polls/index.html {% if latest_question_list %} < ul > {% for question in latest_question_list %} < li >< a href = "/polls/ {{ question.id }} /" > {{ question.question_text }} </ a ></ li > {% endfor %} </ ul > {% else %} < p > No poll ... 除 polls/index.html テンプレートで質問へのリンクを書いたとき、リンクの一部は次のようにハードコードされていました: < li >< a href = "/polls/ {{ question.id }} /" > {{ question.question_text }} </ a ></ li > このハードコードされた密結合のアプローチの問題 ... 、テンプレートタグの {% url %} を使うことで URL 設定で定義されている特定の URL パスへの依存をなくすことができます: < li >< a href = " {% url 'detail' question.id %} " > {{ question.question_text }} </ a ></ li > これが機能するのは、 polls.urls モジュー ...
https://man.mtool.work/django/6.1/intro/tutorial03.html
Django 1.4.20 リリースノート 8695
Django 1.4.20 リリースノート March 18, 2015 Django 1.4.20 fixes one security issue in 1.4.19. Mitigated possible XSS attack via user-supplied redirect URLs Django relies on user input in some cases (e.g. django.contrib.auth.views.login() an ... fer from an XSS attack as some browsers such as Google Chrome ignore control characters at the start of a URL in an anchor href . ...
https://man.mtool.work/django/6.1/releases/1.4.20.html
Django 1.6.11 リリースノート 8447
Django 1.6.11 リリースノート March 18, 2015 Django 1.6.11 fixes two security issues in 1.6.10. Denial-of-service possibility with strip_tags() Last year strip_tags() was changed to work iteratively. The problem is that the size of the input ... fer from an XSS attack as some browsers such as Google Chrome ignore control characters at the start of a URL in an anchor href . ...
https://man.mtool.work/django/6.1/releases/1.6.11.html
Django 1.7.7 リリースノート 8315
Django 1.7.7 リリースノート March 18, 2015 Django 1.7.7 fixes several bugs and security issues in 1.7.6. Denial-of-service possibility with strip_tags() Last year strip_tags() was changed to work iteratively. The problem is that the size of ... fer from an XSS attack as some browsers such as Google Chrome ignore control characters at the start of a URL in an anchor href . バグ修正 Fixed renaming of classes in migrations where renaming a subclass would cause incorrect state to be recorded fo ...
https://man.mtool.work/django/6.1/releases/1.7.7.html
独自のテンプレートタグとフィルタを作る 8182
独自のテンプレートタグとフィルタを作る Django のテンプレート言語は、アプリケーションのプレゼンテーションロジックのニーズに対応するように設計された、多種多様な 埋め込みタグやフィルタ を搭載しています。それでもなお、テンプレート構成要素のコア ... ptags %} {% block content %} {% msgbox level = "error" %} Please fix all errors. Further documentation can be found at < a href = "http://example.com" > Docs </ a > . {% endmsgbox %} {% msgbox level = "info" %} More information at: < a href = "http:/ ... e read for < i > Important Site </ i > </ summary > < p > Please fix all errors. Further documentation can be found at < a href = "http://example.com" > Docs </ a > . </ p > </ details > </ div > < div class = "msgbox info" > < details > < summary > ... < strong > Info </ strong > : Please read for < i > Important Site </ i > </ summary > < p > More information at: < a href = "http://othersite.com" > Other Site </ a > </ p > </ details > </ div > Inclusion tag (インクルージョン・タグ) django.te ...
https://man.mtool.work/django/6.1/howto/custom-template-tags.html
How to use Django's Content Security Policy 8050
How to use Django's Content Security Policy Basic config Content Security Policy (CSP) を有効にするには、Django プロジェクトで次のように設定します: Add the CSP middleware to your MIDDLEWARE setting: MIDDLEWARE = [ # ... "django.middleware.c ... p_nonce_attr template tag: < script src = "/path/to/script.js" {% csp_nonce_attr %} ></ script > < link rel = "stylesheet" href = "/path/to/style.css" {% csp_nonce_attr %} > To render a Media object's assets with the nonce applied to each element, pa ...
https://man.mtool.work/django/6.1/howto/csp.html
PREV 1 2 3 NEXT