diff --git a/constance/templates/admin/constance/change_list.html b/constance/templates/admin/constance/change_list.html index 0b6e939..c2e8679 100644 --- a/constance/templates/admin/constance/change_list.html +++ b/constance/templates/admin/constance/change_list.html @@ -1,5 +1,5 @@ {% extends "admin/base_site.html" %} -{% load constance_tags admin_list i18n %} +{% load admin_static admin_list i18n %} {% block extrastyle %} diff --git a/constance/templatetags/__init__.py b/constance/templatetags/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/constance/templatetags/constance_tags.py b/constance/templatetags/constance_tags.py deleted file mode 100644 index 53f86f1..0000000 --- a/constance/templatetags/constance_tags.py +++ /dev/null @@ -1,20 +0,0 @@ -from __future__ import absolute_import -from django import template -from django.conf import settings -from django.core.files.storage import get_storage_class - -try: - from django.contrib.staticfiles.storage import staticfiles_storage -except ImportError: - staticfiles_storage = get_storage_class(settings.STATICFILES_STORAGE)() - -register = template.Library() - - -@register.simple_tag -def static(path): - """ - A template tag that returns the URL to a file - using staticfiles' storage backend - """ - return staticfiles_storage.url(path)