crucialfelix / django-ajax-selects

jQuery UI-powered auto-complete fields for ForeignKey, ManyToMany and text fields
Other
822 stars 249 forks source link

`collectstatic` doesn't work properly with new version of `jquery-ui` #311

Closed pecheneff closed 8 months ago

pecheneff commented 9 months ago

Hello.

There is an issue with the new version of jquery-ui. When running collectstatic management command and using ManifestStaticFilesStorage as static files storage the command throws an error.

Screenshot 2023-12-21 at 02 30 54

The problem is jQuery authors put a comment to jquery-ui-min.css file which contains strings like url(%22images%2Fui-icons_555555_256x240.png%22). So when Django parses this file it tries to use these CSS url() statements to build static paths.

Removing of this comment from the file fixes the issue.

Please remove the comment which contains CSS url() statements since this comment is not compatible with Django's collectstatic. Thanks in advance.

There is a ticket in Django related to this issue.