I've read several related posts to collecting static files in production, but still can't seem to figure out why collectstatic fails. Why would the following code work with DEBUG = false
and not DEBUG = true
When DEBUG is equal to True the following settings works:
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
STATIC_ROOT = '/static/'
STATIC_URL = '/static/'
STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'static'),
)
However when DEBUG is set to false, collect static fails.
My file structure: