Report this

What is the reason for this report?

My django app font fies from DO spaces are not working in any browser.

Posted on May 25, 2020

The font files are seen in the browser that they exist from the DO spaces cdn but they are not working in any browser. I even added the cdn links of the font-files directly into the css @font-face rules but its not still working.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

So the thing is, I have a django app on a live server, the static files are hosted on Digital Ocean spaces. The static files are working well but the fonts are not. I thought probably it was because the font files are linked to the /static/ folder so I changed the @font-face src: url() parameter in my css stylesheet to the digital ocean spaces cdn link for the font files but its not still working. I even embedded the @font-face rule in the html template and connected the font files with the django static files template url but its still not working. The surprising thing is that all of these work on my localhost. I’m not sure what to put on codepen here.

The developer cloud

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

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.