New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix CSS Absolute Filter bug when working with remote files #337
base: develop
Are you sure you want to change the base?
Conversation
I Agree! And I'm not sure if a django-compressor filters has a reference to the request made. I'll take a closer look at it. |
Yeah I'm not sure that urllib needs to understand. I am currently using some code similar to yours to handle |
I have the same issue right now. Going to test this fork |
Looks like my issue is other than yours. Mine fixed by setting COMPRESS_ROOT = MEDIA_ROOT |
Yeah, that seems to be an issue related to the way we structured our static and media directories. That's why in my initial comment on this PR I said
Did you make the same choice as mine for |
No, its on MEDIA_ROOT for me. I am using an special storage that partially handles this issue for me: It copies the needed files to the server from the remote storage when Its better if django_compressor can provide a solution, but this storage Alan Justino da Silva 2013/3/27 Pierre Dulac notifications@github.com
|
Hi,
It seems to me that every time I tried to set my production app setting DEBUG to False, the css absolute filter wasn't applied. So after a little digging, I found that the condition
wasn't taking into account if the file wasn't stored on the server root path.
Indeed, I was forced to set COMPRESS_ROOT equal to STATIC_ROOT (correct me if I'm wrong). Then STATIC_ROOT need to be a local path on the server and can't be a remote path to a S3 bucket.
So
filename
never starts withthis.root
value.If I'm miss-understading the usual settings to work well with Amazon S3 assets tell me, I'm sure I'm not the first one to use this configuration.