From: Diane Trout Date: Tue, 18 Jun 2013 00:06:13 +0000 (-0700) Subject: Replace deprecated django.contrib adminmedia with staticfiles. X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=3dbdf2d6c340edcecb2587e10740ce44a92425f2 Replace deprecated django.contrib adminmedia with staticfiles. Also update url template tag for django 1.5 syntax. --- diff --git a/htsworkflow/frontend/templates/admin/index.html b/htsworkflow/frontend/templates/admin/index.html index 4a5677d..66b6942 100644 --- a/htsworkflow/frontend/templates/admin/index.html +++ b/htsworkflow/frontend/templates/admin/index.html @@ -1,7 +1,7 @@ {% extends "admin/base_site.html" %} {% load i18n %} -{% block extrastyle %}{{ block.super }}{% endblock %} +{% block extrastyle %}{{ block.super }}{% endblock %} {% block coltype %}colMS{% endblock %} diff --git a/htsworkflow/frontend/templates/base.html b/htsworkflow/frontend/templates/base.html index f8899df..3365689 100644 --- a/htsworkflow/frontend/templates/base.html +++ b/htsworkflow/frontend/templates/base.html @@ -17,8 +17,8 @@ {% block title %}{{ app_name }} - {{ page_name }}{% endblock %} {% block additional_css %} - {% load adminmedia %} - {% if LANGUAGE_BIDI %}{% endif %} + {% load staticfiles %} + {% if LANGUAGE_BIDI %}{% endif %} {% block extrastyle %}{% endblock %} {% block extrahead %}{% endblock %} {% block blockbots %}{% endblock %} @@ -39,7 +39,7 @@ {% trans 'Welcome,' %} {% firstof user.first_name user.username %}. {% block userlinks %} - {% url django-admindocs-docroot as docsroot %} + {% url "django.admindocs.docroot" as docsroot %} {% if docsroot %} {% trans 'Documentation' %} / {% endif %} diff --git a/htsworkflow/frontend/templates/inventory/inventory_summary.html b/htsworkflow/frontend/templates/inventory/inventory_summary.html index 4c56f09..1a4797c 100644 --- a/htsworkflow/frontend/templates/inventory/inventory_summary.html +++ b/htsworkflow/frontend/templates/inventory/inventory_summary.html @@ -3,7 +3,7 @@ {% block content %} {% if item %}

Item Summary:

- Print
+ Print

UUID: {{item.uuid}}
Barcode ID: {{ item.barcode_id }}
diff --git a/htsworkflow/frontend/templates/registration/login.html b/htsworkflow/frontend/templates/registration/login.html index 2bf2456..d3d108b 100644 --- a/htsworkflow/frontend/templates/registration/login.html +++ b/htsworkflow/frontend/templates/registration/login.html @@ -1,9 +1,9 @@ {% extends "base_site.html" %} {% load i18n %} -{% block additional_css %}{% load adminmedia %}{{ block.super }} - - +{% block additional_css %}{% load staticfiles %}{{ block.super }} + + {% endblock %} {% block title %}Login{% endblock %} diff --git a/htsworkflow/frontend/templates/search_form.html b/htsworkflow/frontend/templates/search_form.html index 97ef8f1..3c66304 100644 --- a/htsworkflow/frontend/templates/search_form.html +++ b/htsworkflow/frontend/templates/search_form.html @@ -1,9 +1,9 @@ -{% load adminmedia %} +{% load staticfiles %} {% load i18n %} {% if cl.search_fields %}