per page, with , order by , clip by
Results of 1 - 10 of about 28 for contact (0.005 sec.)
フォーム API — Django 6.1 ドキュメント 12912
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォーム API ¶ このドキュメントについて このドキュメントでは、Django のフォーム API の詳細について説明します。このドキュメントを読む前に フォームにつ ... できます。 class Form [ソース] ¶ バインドされていない Form のインスタンスを作成するには、クラスの初期化を行います。 >>> f = ContactForm () フォームにデータをバインドするには、辞書型のデータを Form クラスのコンストラクタの最初のパラメータとして渡します。 ... >>> data = { ... "subject" : "hello" , ... "message" : "Hi there" , ... "contact_email" : "foo@example.com" , ... "urgent" : True , ... } >>> f = ContactForm ( data ) この辞書では、キーは Form クラスの属 ... ンスと、されていないフォームインスタンスを区別する必要があるときは、フォームの is_bound 属性の値を確認してください。 >>> f = ContactForm () >>> f . is_bound False >>> f = ContactForm ({ "subject" : "hello" }) >>> f . is_bound True 空の辞書を渡すと、データ ...
https://man.mtool.work/django/6.1/ref/forms/api.html
フォーム API — Django 6.1 ドキュメント 12863
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォーム API ¶ このドキュメントについて このドキュメントでは、Django のフォーム API の詳細について説明します。このドキュメントを読む前に フォームにつ ... できます。 class Form [ソース] ¶ バインドされていない Form のインスタンスを作成するには、クラスの初期化を行います。 >>> f = ContactForm () フォームにデータをバインドするには、辞書型のデータを Form クラスのコンストラクタの最初のパラメータとして渡します。 ... >>> data = { ... "subject" : "hello" , ... "message" : "Hi there" , ... "contact_email" : "foo@example.com" , ... "urgent" : True , ... } >>> f = ContactForm ( data ) この辞書では、キーは Form クラスの属 ... ンスと、されていないフォームインスタンスを区別する必要があるときは、フォームの is_bound 属性の値を確認してください。 >>> f = ContactForm () >>> f . is_bound False >>> f = ContactForm ({ "subject" : "hello" }) >>> f . is_bound True 空の辞書を渡すと、データ ...
https://man.mtool.work/django/6.1/ref/forms/api.html
ページ分割 (Pagination) — Django 6.1 ドキュメント 10552
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ページ分割 (Pagination) ¶ Django は、ページ分割 (ページネーション) されたデータを管理するための高レベルと低レベルの方法を提供しています。つまり、"前 ... by 属性をビュークラスに追加します。以下に例を示します。 from django.views.generic import ListView from myapp.models import Contact class ContactListView ( ListView ): paginate_by = 2 model = Contact これにより、各ページのオブジェクト数が制限され、 pagin ... ユーザーがページ間を移動できるように、次のようにしてテンプレートに次のページと前のページへのリンクを追加しましょう。 {% for contact in page_obj %} {# Each "contact" is a Contact model object. #} {{ contact.full_name | upper }} < br > ... {% endfor %} < d ... ator の一例です。 from django.core.paginator import Paginator from django.shortcuts import render from myapp.models import Contact def listing ( request ): contact_list = Contact . objects . all () paginator = Paginator ( contact_list , 25 ) # Show 25 c ...
https://man.mtool.work/django/6.1/topics/pagination.html
ページ分割 (Pagination) — Django 6.1 ドキュメント 10454
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ページ分割 (Pagination) ¶ Django は、ページ分割 (ページネーション) されたデータを管理するための高レベルと低レベルの方法を提供しています。つまり、"前 ... by 属性をビュークラスに追加します。以下に例を示します。 from django.views.generic import ListView from myapp.models import Contact class ContactListView ( ListView ): paginate_by = 2 model = Contact これにより、各ページのオブジェクト数が制限され、 pagin ... ユーザーがページ間を移動できるように、次のようにしてテンプレートに次のページと前のページへのリンクを追加しましょう。 {% for contact in page_obj %} {# Each "contact" is a Contact model object. #} {{ contact.full_name | upper }} < br > ... {% endfor %} < d ... ator の一例です。 from django.core.paginator import Paginator from django.shortcuts import render from myapp.models import Contact def listing ( request ): contact_list = Contact . objects . all () paginator = Paginator ( contact_list , 25 ) # Show 25 c ...
https://man.mtool.work/django/6.1/topics/pagination.html
フォームを使う — Django 6.1 ドキュメント 9274
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォームを使う ¶ このドキュメントについて このドキュメントでは、Web フォームの基本と、それらを Django で扱う方法を紹介しています。より詳しく知りたい ... 的なフォームを考えましょう。個人のウェブサイトで "お問い合わせ" 機能を実装します: forms.py ¶ from django import forms class ContactForm ( forms . Form ): subject = forms . CharField ( max_length = 100 ) message = forms . CharField ( widget = forms . Text ... area ) contact_email = forms . EmailField () urgent = forms . BooleanField ( required = False ) Our earlier form used a single field, you ... r_name , a CharField . In this case, our form has four fields: subject , message , contact_email and urgent . CharField , EmailField and BooleanField are just three of the available field types; a full list can be ...
https://man.mtool.work/django/6.1/topics/forms/
フォームを使う — Django 6.1 ドキュメント 9274
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォームを使う ¶ このドキュメントについて このドキュメントでは、Web フォームの基本と、それらを Django で扱う方法を紹介しています。より詳しく知りたい ... 的なフォームを考えましょう。個人のウェブサイトで "お問い合わせ" 機能を実装します: forms.py ¶ from django import forms class ContactForm ( forms . Form ): subject = forms . CharField ( max_length = 100 ) message = forms . CharField ( widget = forms . Text ... area ) contact_email = forms . EmailField () urgent = forms . BooleanField ( required = False ) Our earlier form used a single field, you ... r_name , a CharField . In this case, our form has four fields: subject , message , contact_email and urgent . CharField , EmailField and BooleanField are just three of the available field types; a full list can be ...
https://man.mtool.work/django/6.1/topics/forms/
redirects (リダイレクト)アプリ — Django 6.1 ドキュメント 9094
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » redirects (リダイレクト)アプリ ¶ Django にはオプションで redirects (リダイレクト) アプリケーションが付属しています。リダイレクトをデータベースに保 ... import Redirect >>> # Add a new redirect. >>> redirect = Redirect . objects . create ( ... site_id = 1 , ... old_path = "/contact-us/" , ... new_path = "/contact/" , ... ) >>> # Change a redirect. >>> redirect . new_path = "/contact-details/" >>> redir ... ect . save () >>> redirect <Redirect: /contact-us/ ---> /contact-details/> >>> # Delete a redirect. >>> Redirect . objects . filter ( site_id = 1 , old_path = "/contact- ... マップ・フレームワーク 関連キーワード リダイレクト redirect path redirects Redirect RedirectFallbackMiddleware ミドルウェア contact contrib response データベース Moved site リダイレクト 経由 models HttpResponse アプリ アプリケーション ステータス コード ...
https://man.mtool.work/django/6.1/ref/contrib/redirects.html
redirects (リダイレクト)アプリ — Django 6.1 ドキュメント 9045
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » redirects (リダイレクト)アプリ ¶ Django にはオプションで redirects (リダイレクト) アプリケーションが付属しています。リダイレクトをデータベースに保 ... import Redirect >>> # Add a new redirect. >>> redirect = Redirect . objects . create ( ... site_id = 1 , ... old_path = "/contact-us/" , ... new_path = "/contact/" , ... ) >>> # Change a redirect. >>> redirect . new_path = "/contact-details/" >>> redir ... ect . save () >>> redirect <Redirect: /contact-us/ ---> /contact-details/> >>> # Delete a redirect. >>> Redirect . objects . filter ( site_id = 1 , old_path = "/contact- ... ワーク 関連キーワード リダイレクト redirect path redirects django new class Redirect RedirectFallbackMiddleware ミドルウェア contact Django contrib response データベース old Moved インストール py site 関連するページ Django 1.9.13 リリースノート Django 1.1 ...
https://man.mtool.work/django/6.1/ref/contrib/redirects.html
ジェネリック編集ビュー (Generic editing view) — Django 6.1 ドキュメント 7488
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ジェネリック編集ビュー (Generic editing view) ¶ 以下のビューは、このページで説明され、内容を編集するための基礎を提供します: django.views.generic.edi ... jango.views.generic.edit.ProcessFormView django.views.generic.base.View 例 myapp/forms.py : from django import forms class ContactForm ( forms . Form ): name = forms . CharField () message = forms . CharField ( widget = forms . Textarea ) def send_email ... ( self ): # send email using the self.cleaned_data dictionary pass 例 myapp/views.py : from myapp.forms import ContactForm from django.views.generic.edit import FormView class ContactFormView ( FormView ): template_name = "contact.html" form ... _class = ContactForm success_url = "/thanks/" def form_valid ( self , form ): # This method is called when valid form data has been POSTed. ...
https://man.mtool.work/django/6.1/ref/class-based-views/generic-editing.html
ジェネリック編集ビュー (Generic editing view) — Django 6.1 ドキュメント 7455
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ジェネリック編集ビュー (Generic editing view) ¶ 以下のビューは、このページで説明され、内容を編集するための基礎を提供します: django.views.generic.edi ... jango.views.generic.edit.ProcessFormView django.views.generic.base.View 例 myapp/forms.py : from django import forms class ContactForm ( forms . Form ): name = forms . CharField () message = forms . CharField ( widget = forms . Textarea ) def send_email ... ( self ): # send email using the self.cleaned_data dictionary pass 例 myapp/views.py : from myapp.forms import ContactForm from django.views.generic.edit import FormView class ContactFormView ( FormView ): template_name = "contact.html" form ... _class = ContactForm success_url = "/thanks/" def form_valid ( self , form ): # This method is called when valid form data has been POSTed. ...
https://man.mtool.work/django/6.1/ref/class-based-views/generic-editing.html
PREV 1 2 3 NEXT