반응형
from django import forms
class BoardForm(forms.Form):
title = forms.CharField(error_messages={
'required': '제목을 입력해주세요.'
}, max_length=128, label="제목")
contents = forms.CharField(error_messages={
'required': '내용을 입력해주세요.'
}, widget=forms.Textarea, label="내용")
tags = forms.CharField(required=False, label="태그")
반응형
'Python_WEB > Project-Noticeboard' 카테고리의 다른 글
[Django]User > Templates > HTML > Basic (0) | 2019.12.14 |
---|---|
[Django]Board > Views (0) | 2019.12.08 |
[Django]Board > Templates > HTML > Board Write (0) | 2019.12.08 |
[Django]Board > Templates > HTML > Board List (0) | 2019.12.08 |
[Django]Board > Templates > HTML > Board_Detail (0) | 2019.12.08 |