N
Neon17mo ago
foreign-sapphire

Help with Django Image Upload Handling

Good day, I cant seem to figure out how to get my images I have uploaded to appear in the frontend, I am using Python, django and I would like to know if there are any extra steps to be taken.
2 Replies
rising-crimson
rising-crimson17mo ago
I don't have experience working with Django, but to make sure I understand correctly, your image upload works fine and you're able to store references to the uploaded files in your database?
other-emerald
other-emerald16mo ago
For image uploads, use object storage such as AWS S3, Google Cloud Storage, Digital Ocean Spaces, Linode Object Storage, CloudFlare R2, etc. The tool django-storages makes this far easier but you still need to know how to use the above hosting services to make this happen. Self-hosting file uplaods (models.FielField or models.ImageField) is not exactly easy to do. If you went this method, you would probably use NGINX with a a storage volume on your virtual machine.

Did you find this page helpful?