apps.contact

A django application for handling an email contact form.

apps.contact.urls

The urls module configures routes from URLs to views.

URL View name
/ ContactView contact
sent SuccessView contact-sent

apps.contact.forms

The forms module defines views forms for data entry and query construction.

broker_web.apps.contact.forms.ContactForm Form to send a “contact us” email to the maintainers
class broker_web.apps.contact.forms.ContactForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)

Form to send a “contact us” email to the maintainers

apps.contact.views

The views module defines View objects for converting web requests into rendered responses.

broker_web.apps.contact.views.ContactView View for submitting an email to the website maintainers
class broker_web.apps.contact.views.ContactView(**kwargs)

View for submitting an email to the website maintainers

form_class

alias of broker_web.apps.contact.forms.ContactForm

form_valid(form)

Send contents of email form and redirect to success url

Called after form is validated

Parameters:form (django.forms.Form) – User creation form