Things I have verified:
- my
collectstatic
directory (yes, I call it like that, to reduce confussion withstatic
source directories) is in my repo (via a.gitkeep
file) (as advised in the heroku documentation) heroku run python manage.py collectstatic --dry-run --noinput
works (suggested here)- collectstatic is not forcefully disabled:
heroku config:add DISABLE_COLLECTSTATIC=0
- I am pushing a new commit (so heroku is actually deploying)
Still, collectstatic
is not run. What more could I check?
EDIT
Also, I properly define STATIC_ROOT
in settings.py
. Relevant section below:
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'collectstatic/')
STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'static'),
)
EDIT2
My installed apps are just stock django 1.9:
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]
EDIT3
One thing I must mention, which is maybe relevant: DISABLE_COLLECTSTATIC
was set to 1 previously (so forcefully disabled) for this one heroku app, but I have made sure it is now set to 0.
Maybe a bug in Heroku prevents it from using the latest value? I guess the only way to check this is to create a new heroku app.