반응형
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 > Views (0) | 2019.12.14 |
---|---|
[Django]Board > Templates > HTML > Login (0) | 2019.12.14 |
[Django]User > Templates > HTML > Register (0) | 2019.12.14 |
[Django]User > Templates > HTML > Home (0) | 2019.12.14 |
[Django]User > Templates > HTML > Basic (0) | 2019.12.14 |