Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrap referencing bad glyphicons path #4950

5 of 6 tasks
MichaelPalmer1 opened this issue Mar 9, 2017 · 10 comments · Fixed by #4951
5 of 6 tasks

Bootstrap referencing bad glyphicons path #4950

MichaelPalmer1 opened this issue Mar 9, 2017 · 10 comments · Fixed by #4951


Copy link

MichaelPalmer1 commented Mar 9, 2017


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 "", line 10, in <module>
  File "/usr/local/lib/python3.5/site-packages/django/core/management/", line 367, in execute_from_command_line
  File "/usr/local/lib/python3.5/site-packages/django/core/management/", line 359, in execute
  File "/usr/local/lib/python3.5/site-packages/django/core/management/", line 294, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.5/site-packages/django/core/management/", line 345, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.5/site-packages/django/contrib/staticfiles/management/commands/", line 193, in handle
    collected = self.collect()
  File "/usr/local/lib/python3.5/site-packages/django/contrib/staticfiles/management/commands/", line 145, in collect
    raise processed The file 'rest_framework/docs/css/../fonts/glyphicons-halflings-regular.eot' could not be found with < object at 0x7f89f54f9f60>.

The CSS file 'rest_framework/docs/css/bootstrap-theme.min.css' references a file which could not be found:

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

Affected Versions


Suggested Solution

Copy the glyphicons to the appropriate directory.

Similar Issues



  • 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.)
MichaelPalmer1 pushed a commit to MichaelPalmer1/django-rest-framework that referenced this issue Mar 9, 2017
Copy link
Contributor Author

MichaelPalmer1 commented Mar 9, 2017

On second thought, was there a specific reason why an additional bootstrap.min.css file was created in rest_framework/static/rest_framework/docs/css instead of using the existing one in rest_framework/static/rest_framework/css?

Copy link

eranrund commented Mar 9, 2017

Also seeing this when trying to upgrade from 3.5.4 to 3.6.1

Copy link

tomchristie commented Mar 10, 2017

@MichaelPalmer1 - Not particularly intentional, other then ensuring that work on the API docs didn't run the risk of altering anything in the browsable API. Turns out there's no diff between them, so could remove that and use the existing one.

@tomchristie tomchristie added this to the 3.6.2 Release milestone Mar 10, 2017
Copy link

Matbj commented Mar 10, 2017

+1 on seeing this when upgrading from 3.5.4 to 3.6.0+3.6.1

Copy link

lizhongz commented Dec 20, 2017

Seeing this problem again using 3.7.4 with whitenoise 3.3.1

Copy link

xordoquy commented Dec 20, 2017

Referenced in #5692 for 3.7.4

Copy link

Eagleames commented Aug 4, 2022

saw this today when I upgraded django from 4.0.6 to 4.1

Copy link

thomasgubler commented Aug 16, 2022

saw this today when I upgraded django from 4.0.6 to 4.1

I can confirm this. Downgrading from 4.1 to 4.0.7 resolved the issue.

Copy link

marcgibbons commented Sep 21, 2022

Experiencing this as well using STATICFILES_STORAGE = '' on Django 4.1

Unsure what the underlying problem is, but a workaround is to ignore DRF on collectstatic like:

python collectstatic -i rest_framework

Note: you will not be able to use the BrowsableAPIRenderer when DEBUG=False

Copy link

tomchristie commented Sep 21, 2022

Thanks @marcgibbons - I think this is fixed in master with #8591, and should be resolved on our next release.

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

Successfully merging a pull request may close this issue.

9 participants