djLint icon indicating copy to clipboard operation
djLint copied to clipboard

[FEATURE] Linter rule for `Invalid template name in 'extends' tag: ''`

Open cclauss opened this issue 2 years ago • 2 comments

  • [x] I've searched the issues
  • [x] I've read the docs

Feature Request

Running ./manage.py compress raises the error Invalid template name in 'extends' tag: ''

  • https://pypi.org/project/django-compressor

  • [ ] How can I fix this error?

  • [ ] Please consider a linter rule to catch this situation before I run ./manage.py compress

cclauss avatar Jul 20 '23 12:07 cclauss

Hey @cclauss welcome back :) How would you suggest going about this? pick up the file name then verify the path is reachable from the template location?

christopherpickering avatar Jul 20 '23 15:07 christopherpickering

Yes. That seems right to me.

cclauss avatar Jul 21 '23 08:07 cclauss