I follow this tutorial ( https://www.digitalocean.com/community/tutorials/how-to-deploy-django-to-app-platform ) and deploy successfully my django with all the static files. Yesterday I push some changes with the static files (add some color and other stuff done in the scss) but I can’t find the change online.
Any idea?
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!
Accepted Answer
Hi there,
A few things to check here, most likely one of these is the culprit.
First, make sure your SCSS is actually being compiled to CSS before you push. App Platform does not run a build step for SCSS automatically unless you have configured one. If you are relying on a local compile step, double check that the compiled CSS file is committed and pushed to your repo, not just the SCSS source.
Second, check whether collectstatic is running on each deploy. The tutorial sets this up as a run command, but it is worth confirming it is still in your App Platform settings under your app’s run command or build command. You can verify this in the deploy logs in the App Platform console.
Third, browser caching is the most common reason changes do not show up. Do a hard refresh with Ctrl+Shift+R or open in an incognito window to rule this out before digging deeper.
If static files are being served from DigitalOcean Spaces as per the tutorial, also check that the files in your Space actually updated after the last deploy. You can browse the bucket directly in the Spaces console to confirm the new CSS is there.
A quick way to confirm which file is being served:
curl -I https://your-spaces-url/static/your-file.css
Check the Last-Modified header to see if it matches your latest deploy.
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.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.