Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

STATIC_ROOT does not work #205

Open
theilgaard opened this issue May 31, 2021 · 1 comment
Open

STATIC_ROOT does not work #205

theilgaard opened this issue May 31, 2021 · 1 comment
Labels

Comments

@theilgaard
Copy link

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.

@antonagestam
Copy link
Owner

@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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants