Closed
Description
Overview
The file rest_framework/static/rest_framework/docs/css/bootstrap.min.css references ../fonts/glyphicons-halflings-regular.eot
. However, the file actually exists at ../../fonts/glyphicons-halflings-regular.eot
. This is throwing an error when trying to run collectstatic:
Post-processing 'rest_framework/docs/css/bootstrap-theme.min.css' failed!
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.5/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.5/site-packages/django/core/management/__init__.py", line 359, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.5/site-packages/django/core/management/base.py", line 294, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.5/site-packages/django/core/management/base.py", line 345, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python3.5/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 193, in handle
collected = self.collect()
File "/usr/local/lib/python3.5/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 145, in collect
raise processed
whitenoise.storage.MissingFileError: The file 'rest_framework/docs/css/../fonts/glyphicons-halflings-regular.eot' could not be found with <whitenoise.storage.CompressedManifestStaticFilesStorage object at 0x7f89f54f9f60>.
The CSS file 'rest_framework/docs/css/bootstrap-theme.min.css' references a file which could not be found:
rest_framework/docs/css/../fonts/glyphicons-halflings-regular.eot
Please check the URL references in this CSS file, particularly any
relative paths which might be pointing to the wrong location.
Affected Versions
3.6.0+
Suggested Solution
Copy the glyphicons to the appropriate directory.
Similar Issues
Checklist
- I have verified that that issue exists against the
master
branch of Django REST framework. - I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
- This is not a usage question. (Those should be directed to the discussion group instead.)
- This cannot be dealt with as a third party library. (We prefer new functionality to be in the form of third party libraries where possible.)
- I have reduced the issue to the simplest possible case.
- I have included a failing test as a pull request. (If you are unable to do so we can still accept the issue.)