1
# This file is part of GNU Dico.
2
# Copyright (C) 2008, 2009 Wojciech Polak
4
# GNU Dico is free software; you can redistribute it and/or modify
5
# it under the terms of the GNU General Public License as published by
6
# the Free Software Foundation; either version 3, or (at your option)
9
# GNU Dico is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
# GNU General Public License for more details.
14
# You should have received a copy of the GNU General Public License
15
# along with GNU Dico. If not, see <http://www.gnu.org/licenses/>.
17
from django.template import Library
22
"""Return the string contained in the setting MEDIA_URL."""
24
from django.conf import settings
27
return settings.MEDIA_URL
29
media_prefix = register.simple_tag (media_prefix)