Got AttributeError when attempting to get a value for field 'post_image' on serializer 'PostViewSerializerOriginal exception text was: 'Post' object has no attribute 'post_image'.现在,我应该告诉您,没有要求帖子至少包含一个图像或视频,它可以完全包含视频或帖子。那么,这是否是造成
= self.cleaned_data.get('banner', False) img = Image.open(image)name_type, ext = image.content_type.split('/')
if not (name_type == 'image' and ext.lower", line 2534, in ope
python3.7/site-packages/google/colab/patches/__init__.py", line 29, in cv2_imshow display.display(PIL.Image.fromarray(a)) AttributeError: module 'PIL' has no attribute 'Image' –