By cyberposh
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!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.