FORCE_SCRIPT_NAME = djsettings.FORCE_SCRIPT_NAME
OSQA_SKIN = djsettings.OSQA_DEFAULT_SKIN
LANGUAGE_CODE = djsettings.LANGUAGE_CODE
-ADMIN_MEDIA_PREFIX = djsettings.ADMIN_MEDIA_PREFIX
ONLINE_USERS = Setting('ONLINE_USERS', {})
-{% load extra_tags extra_filters i18n %}
+{% load extra_tags extra_filters i18n admin_static %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <link rel="stylesheet" href="{{ settings.ADMIN_MEDIA_PREFIX }}css/base.css" type="text/css"/>
- <link rel="stylesheet" href="{{ settings.ADMIN_MEDIA_PREFIX }}css/forms.css" type="text/css"/>
- <link rel="stylesheet" href="{{ settings.ADMIN_MEDIA_PREFIX }}css/changelists.css" type="text/css"/>
- <!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="{{ settings.ADMIN_MEDIA_PREFIX }}css/ie.css" /><![endif]-->
+ <link rel="stylesheet" href="{% static 'admin/css/base.css' %}" type="text/css"/>
+ <link rel="stylesheet" href="{% static 'admin/css/forms.css' %}" type="text/css"/>
+ <link rel="stylesheet" href="{% static 'admin/css/changelists.css' %}" type="text/css"/>
+ <!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="{% static 'admin/css/ie.css' %}" /><![endif]-->
<link rel="stylesheet" type="text/css" media="screen" href="{% media "/media/style/djstyle_admin.css" %}"/>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
<div id="changes-box" class="module">
<h2>{% trans "Unpublished changes" %}</h2>
<p>
- <img src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_alert.gif" />
+ <img src="{% static 'admin/img/admin/icon_alert.gif' %}" />
{% trans "Items marked with this icon have unpublished changes." %}
</p>
</div>
<li><a href="{% url "admin_set" allsets.sidebar.name %}">{{ allsets.sidebar.title }}</a></li>
<li>
<a href="{% url "admin_set" allsets.css.name %}">{{ allsets.css.title }}</a>
- {% if "css"|contained_in:unsaved %}<img width="12" height="12" src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_alert.gif" alt="{% trans "Unsaved changes" %}" />{% endif %}
+ {% if "css"|contained_in:unsaved %}<img width="12" height="12" src="{% static 'admin/img/admin/icon_alert.gif' %}" alt="{% trans "Unsaved changes" %}" />{% endif %}
</li>
<li>
<a href="{% url "admin_set" allsets.headandfoot.name %}">{{ allsets.headandfoot.title }}</a>
- {% if "headandfoot"|contained_in:unsaved %}<img width="12" height="12" src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_alert.gif" alt="{% trans "Unsaved changes" %}" />{% endif %}
+ {% if "headandfoot"|contained_in:unsaved %}<img width="12" height="12" src="{% static 'admin/img/admin/icon_alert.gif' %}" alt="{% trans "Unsaved changes" %}" />{% endif %}
</li>
<li>
<a href="{% url "admin_set" allsets.head.name %}">{{ allsets.head.title }}</a>
- {% if "head"|contained_in:unsaved %}<img width="12" height="12" src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_alert.gif" alt="{% trans "Unsaved changes" %}" />{% endif %}
+ {% if "head"|contained_in:unsaved %}<img width="12" height="12" src="{% static 'admin/img/admin/icon_alert.gif' %}" alt="{% trans "Unsaved changes" %}" />{% endif %}
</li>
</ul>
</div>
{% for set in othersets %}
<li>
<a href="{% url "admin_set" set.name %}">{{ set.title }}</a>
- {% if set.name|contained_in:unsaved %}<img width="12" height="12" src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_alert.gif" alt="{% trans "Unsaved changes" %}" />{% endif %}
+ {% if set.name|contained_in:unsaved %}<img width="12" height="12" src="{% static 'admin/img/admin/icon_alert.gif' %}" alt="{% trans "Unsaved changes" %}" />{% endif %}
</li>
{% endfor %}
</ul>
{% extends basetemplate %}
-{% load i18n humanize %}
+{% load i18n humanize admin_static %}
{% block subtitle %}{% trans "Moderation" %}{% endblock %}
{% block pagename %}{% trans "Moderation" %}{% endblock %}
<p><a href="{{ cheater.get_profile_url }}">{{ cheater.username }}</a></p>
<p><b>{% trans "Email" %}</b>
{% if cheater.email_isvalid %}
- <img src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon-yes.gif" alt="{% trans "Validated" %}" />
+ <img src="{% static 'img/admin/icon-yes.gif' %}" alt="{% trans "Validated" %}" />
{% else %}
- <img src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon-no.gif" alt="{% trans "Not validated" %}" />
+ <img src="{% static 'img/admin/icon-no.gif' %}" alt="{% trans "Not validated" %}" />
{% endif %}
<a href="mailto: {{ cheater.email }}">{{ cheater.email }}</a></p>
<p><b>{% trans "Reputation:" %}</b> {{ cheater.reputation|intcomma }}</p>
<td><a href="{{ fake.get_profile_url }}">{{ fake.username }}</a></td>
<td>
{% if fake.email_isvalid %}
- <img src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon-yes.gif" alt="{% trans "Validated" %}" />
+ <img src="{% static 'img/admin/icon-yes.gif' %}" alt="{% trans "Validated" %}" />
{% else %}
- <img src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon-no.gif" alt="{% trans "Not validated" %}" />
+ <img src="{% static 'img/admin/icon-no.gif' %}" alt="{% trans "Not validated" %}" />
{% endif %}
<a href="mailto: {{ fake.email }}">{{ fake.email }}</a>
</td>
</table>
{% endif %}
</div>
-{% endblock %}
\ No newline at end of file
+{% endblock %}
{% extends basetemplate %}
-{% load i18n user_tags extra_tags extra_filters %}
+{% load i18n user_tags extra_tags extra_filters admin_static %}
{% block adminjs %}
<script type="text/javascript">
padding: 0 0 0 0;
}
</style>
- <script type="text/javascript">window.__admin_media_prefix__ = "{{ settings.ADMIN_MEDIA_PREFIX }}";</script>
- <link href="{{ settings.ADMIN_MEDIA_PREFIX }}css/base.css" rel="stylesheet" type="text/css" media="screen" />
+ <link href="{% static 'admin/css/base.css' %}" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript">
/* gettext identity library */
}
</script>
- <script type="text/javascript" src="{{ settings.ADMIN_MEDIA_PREFIX }}js/core.js"></script>
+ <script type="text/javascript" src="{% static 'admin/js/core.js' %}"></script>
{% endblock %}
{% block subtitle %}
{% csrf_token %}
<div>
<div>
- <label><img alt="Search" src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_searchbox.png"></label>
+ <label><img alt="Search" src="{% static 'admin/img/admin/icon_searchbox.png' %}"></label>
<input type="text" size="40" name="text" id="text-filter-input" value="{{ text }}">
<input type="submit" value="{% trans "Search" %}">
{% if text %}
{{ nodes.paginator.page_numbers }}
</form>
</div>
-{% endblock %}
\ No newline at end of file
+{% endblock %}
SITE_ID = 1
-ADMIN_MEDIA_PREFIX = '/admin_media/'
SECRET_KEY = 'a;::qCl1mfh?avagttOJ;8f5Rr54d,9qy7;o15M2cYO75?OQo51u3LnQ;!8N.:,7'
CACHE_MAX_KEY_LENGTH = 235