Posts

Example : Django Forms

 from django import forms class Course(forms.Form):     cname=forms.CharField(label="Course Title: ")     duration=forms.CharField(label="Course Duration: ")     fee=forms.IntegerField(label="Course fee : ")     course_List=(     ("1","JAVA"),     ("1","PYTHON"),     ("1","DJANGO"),     ("1","SQL"),     ("1","PHP"),     )     c=forms.ChoiceField(label="Course ",choices=course_List)     BCA=forms.BooleanField(label="BCA")     MCA=forms.BooleanField(label="MCA")     date=forms.DateField(widget=forms.SelectDateWidget)
Recent posts