Skip to content

Error when calling collectstatic #117

Description

@joewandy

Got the following error when calling collectstatic:

  File "/home/jw247a/.local/share/virtualenvs/graphomics-JQtK-73q/lib/python3.8/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 187, in handle
    collected = self.collect()
  File "/home/jw247a/.local/share/virtualenvs/graphomics-JQtK-73q/lib/python3.8/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 134, in collect
    raise processed
whitenoise.storage.MissingFileError: The file 'bundles/images/ui-icons_444444_256x240.png' could not be found with <whitenoise.storage.CompressedManifestStaticFilesStorage object at 0x7f3088d9ad30>.

The CSS file 'bundles/explore_data-cef22fddac80f1a2565e.css' references a file which could not be found:
  bundles/images/ui-icons_444444_256x240.png

Please check the URL references in this CSS file, particularly any
relative paths which might be pointing to the wrong location.

Problem is described here: https://stackoverflow.com/questions/47238946/whitenoise-giving-errors-on-jquery-ui-css-when-doing-collectstatic

Workaround below, but would be nice to fix it properly

~/GraphOmics/graphomics$ cp -r temp_images static/bundles/images
~/GraphOmics/graphomics$ python manage.py collectstatic

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions