def download(request, id): remote_file, path = RemoteModel().download(id) image = Image() image.title = remote_file.title image.pathname = path image.save_remote() return HttpResponseRedirect(reverse('local_list'))