These are chat archives for django/django
how I get values from a form ?
In my html file I use a couple of input boxes ... It is a registration sort of form , the goal is to save the data entered into the DB
My view look like this :
a = MyTable( field1 = request.POST.get([value of name field 1 from the input box] , '') , ... , fieldn = request.POST.get([value of name field n from the input box] , '')) a.save()
No error but the table gets populated but with empty values ...
form = MyForm(data=request.POST) if form.is_valid(): print form.cleaned_data