form = PhotoForm(request.POST, request.FILES)href_photo = form.cleaned_data['href_photo']photo = Photo()
photo.href_photo = href_photo
photo.save()'href_photo': photo.href_photo<img class="photo_img" src={{ href_photo.url }} alt="">django.views.generic.editdjango.views.generic<img class="photo_img" src="{{ href_photo.url }}" alt="">