0

When I upload the project to heroku, and change DEBUG=True to DEBUG=False, the images stop showing

That's my static and media root

STATIC_ROOT = Path(BASE_DIR, 'staticfiles')
STATIC_URL = '/static/'

MEDIA_ROOT = Path(BASE_DIR, 'media')
MEDIA_URL = '/media/'

1 Answers1

0

Essentially, by changing debug to false, you've put django into 'production' mode, which changes what is necessary for static files to be found. This is done because the 'dev' method is not proven secure.

For what to do in horoku, the horoku documentation has you covered:

For more information, the django docs talk about the process as well

SamSparx
  • 4,629
  • 1
  • 4
  • 16