web/ldtplatform/utils/context_processors.py
author ymh <ymh.work@gmail.com>
Wed, 02 Mar 2011 15:47:19 +0100
branchmodal_update
changeset 33 3dd37cc8d8b3
parent 2 93d48df946cb
child 35 12cd95dc134f
permissions -rw-r--r--
small rename
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
from django.conf import settings
2
93d48df946cb change platform to ldtplatform
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
     2
import ldtplatform #@UnresolvedImport
0
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
def version(request):
2
93d48df946cb change platform to ldtplatform
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
     5
    return {'VERSION': ldtplatform.VERSION_STR }
0
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
def base(request):
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
    return {'BASE_URL': settings.BASE_URL, 'MEDIA_URL': settings.MEDIA_URL }
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
def web(request):
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
    return {'WEB_URL': settings.WEB_URL }