我有一个奇怪的错误,当试图使用枕头保存在我的Django管理图像。。。在
from PIL import _imaging as core
ImportError: cannot import name _imaging
class GenericImageAdmin(admin.ModelAdmin):
list_display = ["__unicode__", "title", "created", "thumbnail"]
def save_model(self, request, obj, form, change):
obj.user = request.user
obj.save()
admin.site.register(GenericImage, GenericImageAdmin)
最奇怪的是,当我删除时也会出现同样的错误
from PIL.Image import core as _imaging
目前没有回答
相关问题 更多 >
编程相关推荐