A view for displaying a form, and rendering a template response.
Returns the form class to use in this view
Returns an instance of the form to be used in this view.
If the form is invalid, re-render the context data with the data-filled form and errors.
If the form is valid, redirect to the supplied URL.
Note
Override this method if you wish to perform an action on successful form submission (Eg: For a contact form you may wish to send an email).
Returns the prefix to use for forms on this view
Returns the initial data to use for forms on this view.
Returns the keyword arguments for instantiating the form.
Return a directory of macro names.
Values should be template paths, and keys will be used as the lookup key in the template. Eg. macros.<key>.<macro>.
Handles GET requests and instantiates a blank version of the form.
Handles POST requests, instantiating a form instance with the passed POST variables and then checked for validity.