মডিউল ৫-৭ঃ জ্যাংগো ফর্মে ফাইল আপলোড
from django import forms
class contactForm(forms.Form):
name = forms.CharField(label="Enter your Name:")
# email = forms.EmailField(label = "User Email")
# age = forms.IntegerField()
# weight = forms.FloatField()
# balance = forms.DecimalField()
# age = forms.CharField()
# check = forms.BooleanField()
# birthday = forms.CharField()
# appointment = forms.CharField()
# CHOICES = [('S', 'Small'), ('M', 'Medium'), ('L', 'Large')]
# size = forms.ChoiceField(choices=CHOICES)
# MEAL = [('P', 'Pepperoni'), ('M', 'Mashroom'), ('B', 'Beef')]
# pizza = forms.MultipleChoiceField(choices=MEAL)
file=forms.FileField()


Previousমডিউল ৫-৬ঃ জ্যাগো ফর্মের কিছু পরিচিত ফিল্ডসমূহ-২Nextমডিউল ৫-৮ঃ জ্যাংগো ফর্মের Attributes ও Widgets সমূহ
Last updated