from django.core.files import File
from django.core.files.temp import NamedTemporaryFile
img_temp = NamedTemporaryFile(delete=True)
img_temp.write(urllib.request.urlopen(url).read())
Django: add image in an ImageField from image url