Some cleaning
authorymh <ymh.work@gmail.com>
Thu, 28 May 2015 11:03:58 +0200
changeset 1381 44ccf39aaf42
parent 1380 81f4a6471e71
child 1382 8aff7e66e4c7
child 1387 82d256129376
Some cleaning
src/ldt/ldt/settings.py
src/ldt/ldt/templatetags/ldtmedia.py
--- a/src/ldt/ldt/settings.py	Wed May 27 11:55:15 2015 +0200
+++ b/src/ldt/ldt/settings.py	Thu May 28 11:03:58 2015 +0200
@@ -79,7 +79,6 @@
 TEST_WEBSERVER_ADDRPORT = getattr(settings, 'TEST_WEBSERVER_ADDRPORT', '127.0.0.1:8000')
 
 ACCOUNT_ACTIVATION_DAYS = getattr(settings, 'ACCOUNT_ACTIVATION_DAYS', 7)
-LDT_MEDIA_PREFIX = getattr(settings, 'LDT_MEDIA_PREFIX', MEDIA_URL + 'ldt/')
 LDT_MAX_SEARCH_NUMBER = getattr(settings, 'LDT_MAX_SEARCH_NUMBER', 50)
 LDT_MAX_FRAGMENT_PER_SEARCH = getattr(settings, 'LDT_MAX_FRAGMENT_PER_SEARCH', 3)
 LDT_RESULTS_PER_PAGE = getattr(settings, 'LDT_RESULTS_PER_PAGE', 1)
--- a/src/ldt/ldt/templatetags/ldtmedia.py	Wed May 27 11:55:15 2015 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-from django.template import Library
-
-register = Library()
-
-def ldt_media_prefix():
-    """ 
-    Returns the string contained in the setting LDT_MEDIA_PREFIX.
-    """
-    try:
-        from django.conf import settings
-    except ImportError:
-        return ''
-    return settings.LDT_MEDIA_PREFIX
-ldt_media_prefix = register.simple_tag(ldt_media_prefix)