Report this

What is the reason for this report?

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

Posted on December 18, 2020

Connected Tutorial(This question is a follow-up to this tutorial):

How To Deploy a Django App on 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 settings.py 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.



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.

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.

Thanks, idiallo

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.