django-admin-sortable2 icon indicating copy to clipboard operation
django-admin-sortable2 copied to clipboard

change_list.html: fix compress command of django-compressor

Open PetrDlouhy opened this issue 1 year ago • 2 comments

The django-compress raises following errors during run of compress management command and also compilescss command of django-sass-processor:

# python manage.py compress
Compressing...
Error parsing template adminsortable2/change_list.html: Invalid template name in 'extends' tag: ''. Got this from the 'base_change_list_template' variable.

PetrDlouhy avatar Aug 16 '23 09:08 PetrDlouhy

and also compilescss command of django-sass-processor:

but django-sass-processor only issues a warning, or do I miss something here?

Does django-compressor abort its job after encountering that template?

jrief avatar Aug 16 '23 12:08 jrief

@jrief You are right. Those are just warnings, but they are a bit annoying and can hide more serious issues. This simple fix would get rid of them.

PetrDlouhy avatar Aug 16 '23 12:08 PetrDlouhy