wsvincent/djangoforprofessionals

App doesn't serve uploaded images in production

Closed this issue · 3 comments

I don't have much information to give apart from the images 404

This is after you create a new book / upload an image.

Other static assets work as usual

Does anyone have any ideas? Or come across this, I'm pretty certain my code matches

This is after completing every chapter in the book

Hi @Constuelo this is an error that has been fixed in the updated version of the book. The issue is that WhiteNoise won't serve media files in production, so you need to use django-storages to do that.

Thanks I solved the issue using AWS S3