Question

How to use my digitalocean spaces custom subdomain cdn.example.com with django

Posted December 20, 2020 544 views
Django

How to use my digitalocean spaces custom subdomain cdn.example.com with django.

How do i change from the default endpoint to my cdn.example.com. on django

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hi there @tdbvume,

What I could suggest here is to follow the steps from this step by step tutorial on how to set up Object Storage with Django:

https://www.digitalocean.com/community/tutorials/how-to-set-up-object-storage-with-django

Mainly take not of step 5 where it shows how to update your settings file with your Spaces credentials, so that you can take advantage of the spaces setup to display the image.

Regards,
Bobby

by Jeremy Morris
DigitalOcean Spaces is an object storage solution, ideal for unstructured data such as audio, video, images or large amounts of text. To learn more about Spaces and object storage, you can read through [An Introduction to DigitalOcean...