Cant save form data in data base -Django

Published: 5/10/2017
Cant save form data in data base -Django
Source: STACKOVERFLOW.COM

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 manage.py dumpdata shows [] i.e empty row. Please help! models.py class EmpD(models.Model): name = models.CharField(max_length=100) email=models.CharField(max_length=100) forms.py class SubmitF(forms.ModelForm): name = forms.CharField() email= forms.CharField() class M

Read more
Related news
Comment