私はモデルでこれを持っています
image_name = models.ImageField(upload_to='accounts/')
私の見解では、
def account_form(request):
if request.method == 'POST': # If the form has been submitted...
form = AccountForm(request.POST) # A form bound to the POST data
if form.is_valid(): # All validation rules pass
form.save()
return HttpResponseRedirect('/thanks/') # Redirect after POST
else:
form = AccountForm() # An unbound form
return render_to_response('account_form.html', {
'form': form,
})
画像を保存するために追加のコーディングを行う必要がありますか、それとも django 自体が行いますか