sehmaschine / django-grappelli

A jazzy skin for the Django Admin-Interface (official repository).
http://www.grappelliproject.com
Other
3.77k stars 657 forks source link

FileNotFoundError after upgrade to 3.0.5 which removes jQuery UI's package.json with existing collected staticfiles #1014

Closed florianm closed 1 year ago

florianm commented 1 year ago

Issue

After upgrading django-grappelli to 3.0.5, tests were failing with

FileNotFoundError: [Errno 2] No such file or directory: '[...]/staticfiles/grappelli/jquery/ui/package.json'

Solution

I had to delete and recreate staticfiles

rm -rf staticfiles/
mkdir staticfiles/
./manage.py collectstatic -l

This is only an issue with existing collected staticfiles. When deploying Django via Docker images which run a fresh collectstatic into a new image layer this issue does not occur.

sehmaschine commented 1 year ago

Thanks for the info. But if I understand correctly, this is not a bug. There is actually nothing we can do about it... right?

florianm commented 1 year ago

Apart from a warning in the release notes or in the code (which I feel would be overkill), this issue should be discoverable enough for any fellow grappelli users running into the same error.