Problem uploading image Django 1.9 Python 3.5

2016-03-02 Thread Povilas Kudriavcevas
My problem is that when I try to save image to my model using Django shell I get this error that I can't find solution anywere. models.py class AdImage(models.Model): ad = models.ForeignKey(Ad) full_photo = models.ImageField(upload_to='uploads/', blank=True) I import models create AdImage

Django Shell image upload _io.BufferedReader no attribute size

2016-03-02 Thread Povilas Kudriavcevas
down votefavorite My problem is that when I try to save image to my model using Django shell I get this error that I can't find solution anywere. models.py class AdImage(models.Model)