web/ldtplatform/utils/context_processors.py
author ymh <ymh.work@gmail.com>
Fri, 28 Jan 2011 19:23:53 +0100
changeset 6 7bc847aaccac
parent 2 93d48df946cb
child 35 12cd95dc134f
permissions -rw-r--r--
clean media correct urls

from django.conf import settings
import ldtplatform #@UnresolvedImport

def version(request):
    return {'VERSION': ldtplatform.VERSION_STR }

def base(request):
    return {'BASE_URL': settings.BASE_URL, 'MEDIA_URL': settings.MEDIA_URL }

def web(request):
    return {'WEB_URL': settings.WEB_URL }