Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Collectstatic fails on django 2.1.1 #1

Description

@nawilliams

I'm getting the following error when I run collectstatic using this package along with django 2.1.1 and whitenoise 4.1

$ python manage.py collectstatic

Post-processing 'fonts/font_awesome/font-awesome.min.css' failed!

Traceback (most recent call last):
  File "manage.py", line 15, in <module>
    execute_from_command_line(sys.argv)
  File "/root/.local/share/virtualenvs/project-iEzfxys1/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "/root/.local/share/virtualenvs/project-iEzfxys1/lib/python3.6/site-packages/django/core/management/__init__.py", line 375, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/root/.local/share/virtualenvs/project-iEzfxys1/lib/python3.6/site-packages/django/core/management/base.py", line 316, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/root/.local/share/virtualenvs/project-iEzfxys1/lib/python3.6/site-packages/django/core/management/base.py", line 353, in execute
    output = self.handle(*args, **options)
  File "/root/.local/share/virtualenvs/project-iEzfxys1/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 188, in
handle
    collected = self.collect()
  File "/root/.local/share/virtualenvs/project-iEzfxys1/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 134, in
collect
    raise processed
whitenoise.storage.MissingFileError: The file 'fonts/fonts/fontawesome-webfont.eot' could not be found with <whitenoise.storage.CompressedManifestStaticFilesStorage object at 0x7ff60f51eda0>.

The CSS file 'fonts/font_awesome/font-awesome.min.css' references a file which could not be found:
  fonts/fonts/fontawesome-webfont.eot

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

If I had to guess the relative paths in a bunch of the files aren't correct. I ended up adding the source files for tabler to my repo and ran into the same issue in the iconfonts plugin css file, which I fixed by changing a number of paths.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions