폼처리: 1개의 글
![](http://i1.daumcdn.net/thumb/C200x150/?fname=https://blog.kakaocdn.net/dn/LRyUc/btq3KdaKIgo/j5Bl66Yef0u7qbvsujI8a0/img.png)
첫번째 장고 앱 작성하기, part 4 간단한 폼 만들기 polls/detail.html을 변경해보면 {{ question.question_text }} {% if error_message %}{{ error_message }}{% endif %} {% csrf_token %} {% for choice in question.choice_set.all %} {{ choice.choice_text }} {% endfor %} polls/urls.py path('/vote/', views.vote, name='vote'), polls/views.py from django.shortcuts import get_object_or_404, render from django.http import HttpRespons..
Python/Django
2021. 4. 29. 02:43