per page, with , order by , clip by
Results of 1 - 1 of about 1 for NameForm (0.004 sec.)
フォームを使う 9414
フォームを使う このドキュメントについて このドキュメントでは、Web フォームの基本と、それらを Django で扱う方法を紹介しています。より詳しく知りたいときは、フォーム API の特定の領域、 フォーム API 、 フォーム フィールド または フォームとフィー ... たいかは、すでに分かっています。Django で実現するためのスタート地点は以下の通りです: forms.py from django import forms class NameForm ( forms . Form ): your_name = forms . CharField ( label = "Your name" , max_length = 100 ) これは、単一のフィールド ( your ... 要があります。 views.py from django.http import HttpResponseRedirect from django.shortcuts import render from .forms import NameForm def get_name ( request ): # if this is a POST request we need to process the form data if request . method == "POST" : # c ... reate a form instance and populate it with data from the request: form = NameForm ( request . POST ) # check whether it's valid: if form . is_valid (): # process the data in form.cleaned_data as required ...
https://man.mtool.work/django/6.1/topics/forms/
PREV 1 NEXT