Collectstatic is not working with DO spaces

Posted January 1, 2021 685 views

i have a Django application on DO apps. everything seems perfect but collectstatic command is not working as expected.
it is just coping the new static files but didn’t find which file was changed.

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

This is a big blocker for our production site too. We are using DO Aap platform and offloading the media files to DO spaces. Every time there is an update on the CSS and we run collectstatic in console. the CSS file on spaces doesn’t update and changes don’t reflect on our website.

We have tried collectfast pip module but it didn’t work either. Is there any solution for that?