Cant save form data in data base -Django

Published: 5/10/2017
Cant save form data in data base -Django

I am trying to create a simple form which takes name and email as user input. But after I submit,its not getting saved in database dumpdata shows [] i.e empty row. Please help! class EmpD(models.Model): name = models.CharField(max_length=100) email=models.CharField(max_length=100) class SubmitF(forms.ModelForm): name = forms.CharField() email= forms.CharField() class M

Read more
Related news