1👍
✅
You are accessing the url of the file, this is correct if you use it on the client side and in general if you reach the resource from internet.
But, in this case you are accessing the file from the server side an you should use obj.file.path
instead of obj.file.url
Source: Django FieldFile Documentation
Source:stackexchange.com