Django file upload using Form
Hy there, my first question on this website, so sorry for my english. So i try to upload a file on a model in Django framework. class banner(models.Model): #id is made by Django name = models.CharField(max_length=255) created_by = models.CharField(max_length=255) company = models.CharField(max_length=255) register_date = models.DateField(auto_now_add=True) file = models.FileField(null=True, blank=True) file_name = models.CharField(max_length=255) this is the model class BannerForm(forms.Form): name=forms.CharField(max_length=255) created_by=forms.CharField(max_length=255) company=forms