我正在使用django-compressor而在admin / change_form.html中我有以下几行代码
{% change_media_list media as media_list %}
{{ media_list|safe }}
当我在浏览器中看到它时,这会呈现以下内容
<link href="/static/course_planner/css/season_tpl.css" type="text/css"media="all" rel="stylesheet" />
<script type="text/javascript" src="/static/admin/js/core.js"></script>
<script type="text/javascript" src="/static/admin/js/vendor/jquery /jquery.js"></script>
<script type="text/javascript" src="/static/admin/js/jquery.init.js"></script>
<script type="text/javascript" src="/static/dashboard /js/RelatedObjectLookups.js"></script>
<script type="text/javascript" src="/static/admin/js/actions.js"> </script>
<script type="text/javascript" src="/static/admin/js/urlify.js"></script>
<script type="text/javascript" src="/static/admin/js/prepopulate.js"> </script>
<script type="text/javascript" src="/static/admin/js/vendor/xregexp /xregexp.js"></script>
现在我想知道是否可以压缩管理媒体上下文,如果是这样的话?