1. Viewって何をやってるの? View(ビュー)の作成は、DjangoでWeb開発する場合避けて通れないです。 Viewがどういった処理を担っているのか、下図のイメージで掴みましょう。 Viewは、WebアプリにHTTPリクエストを送り、レスポンスが返るまでのフローの中で ...
次はUpdateViewです。これで、Viewを引き継ぐものは最後です。こんな感じです。 class クラス名(UpdateView): template_name = "app/update.html" model = Todomodel fields = ('title', 'memo', 'priority', 'duedate') success_url = ...
The ConfirmationMixins makes it simply easy to show a confirmation page before actually doing the create/update with the class based view. Django already provides a confirmation page for the ...
Just wanted to run this by you and get your thoughts... If you're using ModelForms and UpdateView, you're letting Django take care of the form layout, tweaking some setting perhaps via Crispy, and ...