web/ldtplatform/utils/context_processors.py
author ymh <ymh.work@gmail.com>
Fri, 04 Feb 2011 18:41:06 +0100
changeset 20 45cf063be4a5
parent 2 93d48df946cb
child 35 12cd95dc134f
permissions -rw-r--r--
new version of ldt

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 }