web/ldtplatform/utils/context_processors.py
author cavaliet
Tue, 22 Mar 2011 12:35:29 +0100
changeset 46 ba02faf089df
parent 35 12cd95dc134f
child 56 125fc6df230d
permissions -rw-r--r--
Update media adding, to allow youtube import, and display the thumbnail when we paste the youtube url.

from django.conf import settings
import ldtplatform #@UnresolvedImport
import ldt

def version(request):
    return {'VERSION': "platform: %s - web: %s" % (ldt.get_version(),ldtplatform.get_version()) }

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

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