Hii @kartik,
You will end up with the image abc.png copied into the upload_to directory specified in the ImageField.
from django.core.files import File
user1=User(name='abc')
user1.pic.save('abc.png', File(open('/tmp/pic.png', 'r')))
In this case, the user1.pic.save method will also save the user1 instance.
Note:Use 'rb' instead of 'r'. If you are using python3.
Hope it helps!!
Thank you!!