Closed Rohit685 closed 2 years ago
I'm guessing you're using Django. So something like this:
from qrcode import make
from django.contrib.staticfiles.storage import staticfiles_storage
qr = make(QRUrl)
with staticfiles_storage.open('myqr.png') as f:
qr.save(f)
I am trying to save this image to my static folder. Can you do this using the
.save()
function? If so, how? If not, what are some other options I could save it?Thanks