I am trying to save an image file through django shell.
My model.py
is:
class user(models.Model):
name = models.CharField(max_length=20)
pic = models.ImageField()
Everything is fine with admin and forms but I want to save image using shell:
something like
>>> user1 = User(name='abc', pic="what to write here")