You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 12, 2020. It is now read-only.
点击添加评论的时候,现在显示的是一行。改动一个地方(comments/forms.py)就可以显示文本域,注意看最后的Textarea:
`from django import forms
from .models import Comment
class CommentForm(forms.Form):
name = forms.CharField(
label='Name',
widget=forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'Name'})
)
email = forms.EmailField(
label='Email',
widget=forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'Email'})
)
content = forms.CharField(
label='Comment',
widget=forms.Textarea(attrs={'class': 'form-control',
'placeholder': 'Content',
'row': 3})
)
`
The text was updated successfully, but these errors were encountered: