OrgainÂ® makes delicious Certified Organic nutritional shakes, high protein shakes and protein powder to help people lead healthy, vibrant lives.
Defining FormsÂ¶Â§. Forms are composed of fields, which have a widget. from django.utils.translation import gettext_lazy as _ from django import forms class ContactForm(forms.Form): name = forms.CharField(label=_(Your Name), max_length=255, widget=forms.TextInput, ) email = forms.EmailField(label=_(Email address))
Your steps should be as follows.1. 1  Create a Model with fields in the form. 2  Create a Django Form with validations you want on it. 3  Write a Django View that renders the form and handles the form post and saves the instance to your DB.  Write a HTML form that does post for view with proper fields.