Uploading image view
please am new to django coming from php, please i have a form and model class like the ones below, please i need a view function that will handle uploading the image from the form. Thanks.

form
==============================================================================================================

    class additem(forms.Form):
        productName = forms.CharField(max_length = 100)
        category = forms.ChoiceField(widget=forms.Select, choices = ADD_CATEGORY_CHOICES)
        priceFrom = forms.IntegerField()
        productState = forms.ChoiceField(widget=forms.Select, choices=STATE_CHOICES)
        description = forms.CharField(widget=forms.Textarea, max_length = 200)
        tags = forms.CharField(max_length = 100)
        image = forms.CharField(max_length = 100, required = False)
        dateAdded = forms.CharField(widget=forms.HiddenInput, initial = datetime.datetime.today)


model
=================================================================================================================

    class user_products(models.Model):
        productName = models.CharField(max_length = 100)
        category = models.ForeignKey(categories)
        priceFrom = models.IntegerField()
        productState = models.CharField(max_length = 100, choices=STATE_CHOICES)
        description = models.CharField(max_length = 200)
        tags = models.CharField(max_length = 100)
        image = models.FileField(upload_to="images/%Y/%m/%d", blank = True, null = True)
        dateAdded = models.DateTimeField()
Uploading image view
===

please am new to django coming from php, please i have a form and model class like the ones below, please i need a view function that will handle uploading the image from the form. Thanks.

form
==============================================================================================================

    class additem(forms.Form):
        productName = forms.CharField(max_length = 100)
        category = forms.ChoiceField(widget=forms.Select, choices = ADD_CATEGORY_CHOICES)
        priceFrom = forms.IntegerField()
        productState = forms.ChoiceField(widget=forms.Select, choices=STATE_CHOICES)
        description = forms.CharField(widget=forms.Textarea, max_length = 200)
        tags = forms.CharField(max_length = 100)
        image = forms.CharField(max_length = 100, required = False)
        dateAdded = forms.CharField(widget=forms.HiddenInput, initial = datetime.datetime.today)


model
=================================================================================================================

    class user_products(models.Model):
        productName = models.CharField(max_length = 100)
        category = models.ForeignKey(categories)
        priceFrom = models.IntegerField()
        productState = models.CharField(max_length = 100, choices=STATE_CHOICES)
        description = models.CharField(max_length = 200)
        tags = models.CharField(max_length = 100)
        image = models.FileField(upload_to="images/%Y/%m/%d", blank = True, null = True)
        dateAdded = models.DateTimeField()