Closed henribru closed 2 years ago
Actually it turns out disabling manifest_strict
doesn't fix this issue, at least not when using Whitenoise. You end up with another ValueError
, "The file 'huey_monitor.css' could not be found with <whitenoise.storage.CompressedManifestStaticFilesStorage object at 0x7f47401bfd60>."
Hm. I didn't understand the real problem... Maybe you missed to run collectstatic
?!?
huey_monitor.css
is a part of huey_monitor.admin.TaskModelAdmin.Meta.css
, so that collectstatic
will copy this file to the right place... What did i miss here?!?
I am running collectstatic
, but that's not copying a huey_monitor.css
to ./staticfiles/css
. There doesn't seem to be a huey_monitor.css
file in this repository for it to copy?
Whoops. I understand now. Fixed by #66 Released as v0.4.4
Thanks :+1:
TaskModelAdmin
references a CSS file calledhuey_monitor.css
. This file doesn't actually exist, which causes problems if you're using Django'sManifestStaticFilesStorage
or something inheriting from it like Whitenoise'sCompressedManifestStaticFilesStorage
. Specifically you end up with a ValueError and a 500 when navigating to the admin task list in production, unless you tweak the manifest_strict setting. I'm not sure if this CSS thing is leftover from something or if it's meant to be an optional file that can be added by users of the library to customize how the Huey admin looks. In the former case, could we remove it so that we don't have to disablemanifest_strict
? In the latter case, is disablingmanifest_strict
the intended workaround for this issue?