Deployed my site built on Django but static and media files are not showing. Tried a bunch of options, but still the fly.io does not display them. Give advice - what to do.
Generally the first place to look would be the logs to see if any errors are shown there. That can often reveal simple issues such as file not found, invalid paths etc. Run
fly logs from the app’s folder, and see if that shows anything.
If not … have you followed Fly’s docs for deploying Django? For example Getting Started · Fly Docs
If you have, maybe compare your app to other Django apps deployed to Fly and see what differs. For example here is a random one: GitHub - katiayn/katias-blog: Kátia's Blog: Django Girls Tutorial Blog deployed to Fly.io.
The static files began to be approved only after I added the whitenoise module to the Django project
But I still have a problem with media files - it remains to configure them
Kate also used this module-whitenoise to display static files. Unfortunately, she does not use media files separately), but anyway thanks
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.