Plain is headed towards 1.0! Subscribe for development updates →

Forms

Handle user input.

  • forms don't render themselves
  • registered scripts vs media?
  • move model save logic into form.save() - disconnect them
  • Form: validates input from request, saves it
  • Form field: validates field, knows how to parse from html data ?
  • starter includes form components - no markup in python

Re-using input styles

plain-elements, or includes

1"""
2Plain validation and HTML form handling.
3"""
4
5from .boundfield import BoundField  # NOQA
6from .exceptions import FormFieldMissingError, ValidationError  # NOQA
7from .fields import *  # NOQA
8from .forms import Form  # NOQA