collectfast
collectfast copied to clipboard
STATIC_ROOT does not work
Setting both django.core.files.storage.FileSystemStorage and STATIC_ROOT results in collectstatic ignoring the STATIC_ROOT var and using the project base.
I have no name!@9cf8c79be0f7:/project$ ./code/manage.py collectstatic
You have requested to collect static files at the destination
location as specified in your settings:
/project
This will overwrite existing files!
Are you sure you want to do this?
Type 'yes' to continue, or 'no' to cancel: n
CommandError: Collecting static files cancelled.
I have no name!@9cf8c79be0f7:/project$ ./code/manage.py shell
>>> from django.conf import settings
>>> settings.STATIC_ROOT
'static'
If STATICFILES_STORAGE is not set, it functions as intended.
@theilgaard Interesting. I'd be happy to review a PR that fixes this, provided it includes a regression test. Unfortunately I won't have time to work on this myself any time soon, would you be willing to work on this?
Thanks for reporting this!