How to setup django media files folder with DO Apps and static sites components?

Posted December 18, 2020 1.1k views
PythonDjangoPython FrameworksDevelopmentDigitalOcean App Platform

I am following this tutorial to set up my Django app on the DO App platform.

Everything is working as expected other than media files. I tried different configurations and settings at my file but I am unsuccessful.

Do I need to add a media static site service for this? Or can I use the same static site? Any help will be appreciated.

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
2 answers

Did you find a way ??

Has anyone figured out how to make MEDIA files work, similar to STATIC files other than using DO spaces? I tried adding another static component and configured the Route and the output to point to the media folder, in vain… I still get a 404.

Hopefully there is a part 2 of the tutorial addressing MEDIA files.