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.
Copy the glyphicons to the appropriate directory.
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:Affected Versions
3.6.0+
Suggested Solution
Copy the glyphicons to the appropriate directory.
Similar Issues
#4914
#2008
Checklist
masterbranch of Django REST framework.