Posts by Luan Santos • 1 point
1 post
-
0
votes0
answers14
viewsQ: Invalid Django form after . read()
My code is like this Em Views: def cadastrar(request): if request.method == 'POST': arquivo = request.FILES["imagem"] leitura = arquivo.read() if form.is_valid(): form.save() The form is saved only…