Fix use of deprecated adminmedia taglib

and ADMIN_MEDIA_PREFIX setting
This commit is contained in:
Gunnlaugur Þór Briem 2013-07-13 01:28:46 +00:00
parent 32afb162ff
commit fdab7e06fd
2 changed files with 2 additions and 7 deletions

View file

@ -1,12 +1,12 @@
{% extends "admin/base_site.html" %}
{% load i18n admin_modify adminmedia %}
{% load i18n admin_modify admin_static %}
{% block extrahead %}{{ block.super }}
<script type="text/javascript" src="../../../jsi18n/"></script>
{{ media }}
{% endblock %}
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" />{% endblock %}
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}"/>{% endblock %}
{% block coltype %}{% if ordered_objects %}colMS{% else %}colM{% endif %}{% endblock %}

View file

@ -40,11 +40,6 @@ MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'media')
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = '/media/'
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX = '/admin_media/'
# Don't share this with anybody.
SECRET_KEY = 'ljlv2lb2d&)#by6th=!v=03-c^(o4lop92i@z4b3f1&ve0yx6d'