0
I’m a beginner in Django and wanted to know how I can manipulate data sent by the form.
I have the following form:
class CreateNewUser(forms.Form):
Nome = forms.CharField(max_length=200)
email = forms.EmailField()
idade = forms.DecimalField(min_value=5,max_value=120)
cpf = forms.CharField(label="CPF",max_length=11)
# Cadastrar um senha depois
View rendering the form:
def cadastro(request):
# Instânciando o formulário para poder colocar ele na templates
form = CreateNewUser()
return render(request, 'cadastro.html', {'form': form})
I can’t find any place that leaves explicit how to access the data sent by the Django form.
Similar question : https://answall.com/questions/185109/comoros-acessar-dados-de-um-imput-dinamico-de-um-formulario-com-django
– Maury Developer