Tôi sử dụng django-compressor
để biên dịch và rút gọn tài sản tĩnh của mình. Tôi có một số mẫu từ Angular hoặc từ các thư viện Django khác mà cuối cùng bị ném vào thư mục staticfiles
của tôi mà tôi không muốn nén django_compressor
. Trong thực tế, khi nó chạy qua chúng hiện nay, nó ném rất nhiều lỗi ồn ào:Nói với Django Compressor để bỏ qua một số thư mục nhất định khi biên dịch
Error parsing template /app/.heroku/python/lib/python2.7/site-packages/suit/templates/admin/filer/image/change_form.html: 'filermedia' is not a valid tag library: Template library filermedia not found, tried django.templatetags.filermedia,django.contrib.staticfiles.templatetags.filermedia,django_select2.templatetags.filermedia, <...>
Invalid template /app/staticfiles/profile-page/bower_components/angular-strap/src/datepicker/datepicker.tpl.html: Could not parse the remainder: '$iconLeft' from '$iconLeft'
Có cách nào để nói với django-compressor
để bỏ qua thư mục nhất định/file?
có thể bạn có thể xác định các bộ lọc tùy chỉnh để bỏ qua một số tệp nhất định? – maazza