2021年4月3日星期六

Images not loading when deploying Django app to Heroku

I deployed my app to heroku: https://doggos-only.herokuapp.com/

The images on the Dog Images link work locally, but they do not work on the deployed version. The only useful error I'm getting is: cj_eOAaboi.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)

My best guess is that it has something to do with the file path, but I'm not sure. I've tried looking around the web for a solution but have been unable to find one. Looking for any help, here is the repo: https://github.com/jpchato/doggos_only_project

I'm deploying from the deploy_branch in my repo.

https://stackoverflow.com/questions/66937345/images-not-loading-when-deploying-django-app-to-heroku April 04, 2021 at 09:45AM

没有评论:

发表评论