Commits

Chris Moffitt  committed 6c221be

Fix serving of static files in the admin.

  • Participants
  • Parent commits db5bb89

Comments (0)

Files changed (2)

File satchmo/apps/satchmo_store/shop/templates/admin/base_site.html

 {% extends "admin/base.html" %}
-{% load i18n satchmo_util adminmedia %}
+{% load i18n admin_static satchmo_util%}
 
 {% block extrahead %}
 {% blackbird_logging %}
 
 {% block extrastyle %}
 {{ block.super }}
-<link rel="stylesheet" type="text/css" href="{% load adminmedia %}{% admin_media_prefix %}css/base.css" />
+<link rel="stylesheet" type="text/css" href="{% static "admin/css/base.css" %}" />
 <style type="text/css">
 #content-related { float:right; width:29em; position:relative; margin-right: -30em;}
 #content-related .module h2 { cursor: default; }

File satchmo/apps/satchmo_store/shop/templates/admin/index.html

 {% extends "admin/base_site.html" %}
-{% load i18n app_plugins satchmo_util %}
+{% load i18n admin_static app_plugins satchmo_util %}
 
-{% block extrastyle %}<link rel="stylesheet" type="text/css" href="{% load adminmedia %}{% admin_media_prefix %}css/dashboard.css"/>{% endblock %}
-
+{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/dashboard.css" %}" />{% endblock %}
 
 {% block coltype %}colMS{% endblock %}