How to Fetch a file from URL & upload to FileField | Django
I have been working on Python and Django projects since 2014 and during my journey I had a requirement where I had to pull a signed pdf from a third-party server and save it in our S3 bucket. In order to do that I used the urlretrieve method from urllib.request library. I have shared a sample code below. We can use urlcleanup after we have saved…