ランダムおすすめ記事

ホームページ作りました

2019-03-28から1日間の記事一覧

djangoの関数でデータを格納するcontext辞書はbottleではどう設定する?

def vote(request, question_id): form = ChoiceCommentForm(request.POST or None) question = get_object_or_404(Question, pk=question_id) if request.method == 'POST': if form.is_valid(): selected_choice= question.choice_set.get(pk=request.POST…