Reputation: 580
On a project that has been deploying just fine, I am suddenly getting 0 static files copied
from manage.py collectstatic
. I have tried wiping out the destination files in STATIC_ROOT
and still nothing gets copied. I am not aware of any changes in the settings, on the servers, or in my fabric deployment script (but clearly something changed!). The user running the command owns the repo directory and destination directory.
I've verified that manage.py findstatic
outputs the correct directory and can find the original files. If I run FileSystemFinder.list()
from the prompt, it finds all of my static files. When I use manage.py runserver
the images show up, so clearly they can be found.
Any ideas on what might be causing the problem?
According to the debug toolbar, the following settings are active:
STATIC_ROOT = '/var/www/realfood/static'
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
STATICFILES_DIRS = (
('css', '/var/repos/realfood/realfood/static/css'),
('img', '/var/repos/realfood/realfood/static/img'),
('js', '/var/repos/realfood/realfood/static/js'),
('pdf', '/var/repos/realfood/realfood/static/pdf'))
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'compressor.finders.CompressorFinder')
Upvotes: 0
Views: 1986
Reputation: 580
This turned out to be a specific problem with django-cumulus version 1.0.8. It overrides collectstatic
but failed to return a value. It's fixed by applying a more recent commit.
Upvotes: 4