Итак, сначала вам нужно определить модель, которая будет содержать эту информацию, в файле models.py что-то вроде:
class Volunteer(models.Model):
def __unicode__(self):
return self.fname + self.lname
fname = models.CharField(max_length=200)
lname = models.CharField(max_length=200)
bio = models.TextField(max_length=400)
number = models.CharField(max_length=15)
email = modesl.CharField(max_length=255)
И затем представление для получения данных POST из формы в views.py:
def volunteer_create(request):
if request.method == 'POST'and request.POST['fname'] and request.POST['lname'] and request.POST['email'] (ETC...):
v = Volunteer()
v.fname = request.POST['fname']
v.fname = request.POST['lname']
v.fname = request.POST['email']
v.fname = request.POST['number']
...
v.save()
return HttpResponse("Thank you!") #success!
else
return HttpResponseRedirect("/volunteer_form/") #take them back to the form to fill out missed info
Затем вам нужно настроить свой urls.py, чтобы указывать цель формы на это представление.