1. David Jean Louis
  2. django-admin-tools
  3. Issues
Issue #98 resolved

/admin/css/base.css not found

Jeffrey Horn
created an issue

I'm using django 1.4beta. I followed the quickstart guide, and when visiting the admin site, I noticed it wasn't displaying properly. Checking the dev server log shows that:



[06/Mar/2012 20:04:58] "GET /admin/ HTTP/1.1" 200 11588 [06/Mar/2012 20:04:58] "GET /admin/css/base.css HTTP/1.1" 404 5247 [06/Mar/2012 20:04:58] "GET /static/admin_tools/js/utils.js HTTP/1.1" 304 0 [06/Mar/2012 20:04:58] "GET /static/admin_tools/css/theming.css HTTP/1.1" 304 0 }}}

The CSS file is the only file missing, it seems. It isn't missing when I'm not suing admin_tools.

Comments (16)

  1. Jorge

    The file attached is supposed to correct the missing base.css. I didn't see this issue before and I made a new one with the same description.

    the file is found in admin_tools/theming/templates/admin/base.html

  2. 612d7368

    temporary fix:

    copy admin_tools/theming/templates/admin/base.html to templates/admin/base.html

    change {% load adminmedia %}{% admin_media_prefix %}css/base.css

    to {% load static %}{% get_static_prefix %}admin/css/base.css

  3. Stefano Furin

    It should be mentioned in the docs that you have to add 'admin_tools' into INSTALLED_APPS in order to have the static files collected. If you just install the sub-modules, as actually suggested (ver 1.5.1), the files will not be added to STATIC_ROOT.

  4. Log in to comment