I want django automatically download and locally save image from image_url and "connect" it with image_file
how Upload image from an URL with Django i have error object has no attribute '_committed' error
from PIL import Image
import requests
url = 'https://i.stack.imgur.com/0jot2.png'
respone = requests.get(url, stream= True).raw
img = Image.open(respone)
img.save()
def home(request):
Topic(title='hjb',content='vf',slug='fvrs',image=img,
author=User.objects.first() )
.save()