OV
Size: a a a
OV
🔐
image.seek(0)
stream = BytesIO(image.read())
img = Image.open(stream)
if len(img.fp.read()) > 10485760: # 10Mb
raise serializers.ValidationError("Изображение превышает максимальный размер (10Мб)")
KS
🔐
SD
🔐
🔐
🔐
KS
🔐
SD
PZ
🔐
ᅠ
e
email.content_subtype = "html"
e
ᅠ
email.content_subtype = "html"
e
e