Django form.is_valid() points
I have submit form with:
<textarea name="entry" cols="40" rows="10" placeholder="Entry context..." class="area-fld" maxlength="30" required id="id_entry">
# CSS
CSS is a language that can be used to add style to an [HTML](/wiki/HTML) page.
</textarea>
This code:
def new(request):
if request.method == "POST":
form = NewEntry(request.POST)
if form.is_valid():
The form.is_valid()
is False!
All other fields are OK valued. I found the problem is in the values are in textarea.
I need the form validation (required fields) are checked server-side, but above value be approve.
- What is the points of the
form.is_valid()
? - Which values are not approve?
- How can handle this problem?
I have read this Django documentation