Report this

What is the reason for this report?

how to store django media files to spaces?

Posted on March 13, 2020

MEDIA_URL =‘/media/’ MEDIA_ROOT=os.path.join(BASE_DIR,‘media’)

how to link to my spaces so that files will be uploaded to spaces not the server.

staticfiles are working as stored on the spaces. but i dont know how to upload media files to storages.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.