我已经找到了如何将图像从文件系统加载到Django中,但是如何将它们取出来呢?
我已经弄清楚如何在我的管理命令中从数据库中获取内容,并且可以执行如下查询:
for m in my_models.objects.filter(get=some):
image = m.image
# How do I copy this to another non-django location?
我已经找到了如何将图像从文件系统加载到Django中,但是如何将它们取出来呢?
我已经弄清楚如何在我的管理命令中从数据库中获取内容,并且可以执行如下查询:
for m in my_models.objects.filter(get=some):
image = m.image
# How do I copy this to another non-django location?