2024-05-14 08:46:48 发布
网友
编辑具有图像字段的对象时,将显示当前图像路径和标准文件上载字段。我要做的是能够替换显示的路径(“当前:/路径图像.jpg“用真实的图像。我该怎么做?在
提前谢谢!在
如果您正在谈论Django的admin中的表单,那么可以覆盖AdminImageWidget。在
只有很少的片段和帖子解释了这些细节:
对于常规表单,请查看django-form-utils:
This application provides utilities for enhancing Django's form handling:An ImageWidget which display a thumbnail of the image rather than just the filename.
This application provides utilities for enhancing Django's form handling:
An ImageWidget which display a thumbnail of the image rather than just the filename.
如果您正在谈论Django的admin中的表单,那么可以覆盖AdminImageWidget。在
只有很少的片段和帖子解释了这些细节:
对于常规表单,请查看django-form-utils:
相关问题 更多 >
编程相关推荐