Hi,
I have a problem with using
CachedStaticFilesStorage as a STATICFILES_STORAGE and with external
package containing its own static files (easy_select2 to be
specific). If I deploy my project for the very first time with DEBUG =
False, empty cache and no external package static files copied to
STATIC_ROOT I got an exception:
ValueError: The file 'easy_select2/js/init.js' could not be found with <django.contrib.staticfiles.storage.CachedStaticFilesStorage object at 0xffffffffffff>. with every manage.py command, especially collectstatic. I understand that behaviour of HashedFilesMixin is legit but I'm not so sure if it should be like that when I want to collect my static files.
As
a workaround I set temporally DEBUG = True, run manage.py
collectstatic, set DEBUG back to False and do the rest. But I have a
feeling that it is not the right way to do it especially because there
is no problem when StaticFilesStorage is used - no need to do such
tricks.