嗨!我创建了一个新的Django项目,用FormView上传照片。照片将被处理并提供下载链接。问题是响应:我希望html页面保持不变,只需添加下载链接。在
class ColorImageView(FormView):
template_name = 'images.html'
form_class = ColorImageForm
def form_valid(self, form):
download_link = ....
return HttpResponse(...?...)
Screenshot
Tags:
只需使用如下内容编辑
images.html
:并在视图中传递URL:
^{pr2}$相关问题 更多 >
编程相关推荐