css/base.css not found

Anonymous avatarAnonymous created an issue

Hello, I configured admin tools but the admin page was not showing the correctly due the file css/base.css was not found. I have corrected the issue changin in admin_tools/theming/templates/base.html the header where it's written "admin_media_prefix" I changed it to the new static tag and it worked. I attached the file corrected.

Maybe it's not a bug and it's on purpouse, but I'm telling just in case.

Best regards, Jorge (jmorenobl@gmail.com)

Comments (2)

  1. Anonymous

    I didn't attached the file, and I can't now. I write here what I changed: the file is "admin_tools/theming/templates/admin/base.html":

    {% load admin_static %}{% load theming_tags %} <!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 StrictEN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="LANGUAGE_CODE" xml:lang="LANGUAGE_CODE" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}> <head> <title>{% block title %}{% endblock %}</title> <link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% static 'admin/css/base.css' %}{% endblock %}" /> {% block extrastyle %}{% endblock %} <!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="{% block stylesheet_ie %}{% static 'admin/css/ie.css' %}{% endblock %}" /><![endif]--> {% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% static 'admin/css/rtl.css' %}{% endblock %}" />{% endif %} {% render_theming_css %} <script type="text/javascript">window.admin_media_prefix = "{% filter escapejs %}{% static 'admin/' %}{% endfilter %}";</script> {% block extrahead %}{% endblock %} {% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %} </head>

  2. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.