-
Notifications
You must be signed in to change notification settings - Fork 176
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
Django Compress causes errors #188
Comments
Just made a PR to fix the issue: #189 |
I haven't used django-compress in a while, but as far as I can tell it will not do much with Django's admin templates, unless you use the I can't see a setting to skip apps, might be a question for django-compress maintainers. Though, if you are providing a custom change list template, or otherwise wish to compress the resources in the admin site, set your COMPRESS_OFFLINE_CONTEXT = {
"original_change_list_template": "admin/change_list.html"
} @vitormhenrique thanks for your contribution. I can see your PR changes the template to default to the default django admin template, but the existence of the variable For more details see: |
Hello @asfaltboy So it still allow users to use a different template but "forces" a default value. I noticed other apps had the same issue with compressor and they all fixed like this, that is why I went this route. I will try to use the Thank you for your reply, I'll do more digging and let you know! |
That's fair @vitormhenrique, I've merged your fix PR, please let me know if this fixes the issue for you and @RumitAP |
When I try to compress my project down, the static files within the django-advanced-filters causes errors.
To Reproduce
Steps to reproduce the behavior:
python manage.py collectstatic
python manage.py compress --force
Expected behavior
It should be able to compress these files down.
Details (please complete the following information):
Additional context
Add any other context about the problem here, including traceback and additional log files.
The text was updated successfully, but these errors were encountered: