src/ldt/ldt/utils/context_processors.py
author grandjoncl
Wed, 28 Nov 2012 12:27:08 +0100
changeset 995 94f9d36371f6
parent 896 72f7ec8a8789
child 1007 a6d47caa7fc0
permissions -rw-r--r--
new template tag absstatic to have absolute url for static file and avoid using LDT_MEDIA_PREFIX new absurl template tag can be used instead of template tag url to have absolute url replacement of all LDT_MEDIA_PREFIX in different templates and views
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
896
72f7ec8a8789 add correction for platform instance which are protected by a basic http login/password.
ymh <ymh.work@gmail.com>
parents: 170
diff changeset
     1
from ldt import settings
63
93325a5d61f0 organize format and import
ymh <ymh.work@gmail.com>
parents: 56
diff changeset
     2
import ldt
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
170
caa1986245d7 Translation + naming conventions (PEP8)
verrierj
parents: 161
diff changeset
     5
def ldt_context(request):
103
5578dcb54f4d merge context_processors.py and enable upload cancel and remove temp file. Creation of a session temp folder for upload.
cavaliet
parents: 63
diff changeset
     6
    return {'BASE_URL': settings.BASE_URL, 'MEDIA_URL': settings.MEDIA_URL, \
995
94f9d36371f6 new template tag absstatic to have absolute url for static file and avoid using LDT_MEDIA_PREFIX
grandjoncl
parents: 896
diff changeset
     7
             'WEB_URL': settings.WEB_URL, \
161
ec99af8284f5 Changed how the version number display #4
verrierj
parents: 103
diff changeset
     8
             'ADMIN_MEDIA_PREFIX': settings.ADMIN_MEDIA_PREFIX, 'VERSION': ldt.get_version(), \
ec99af8284f5 Changed how the version number display #4
verrierj
parents: 103
diff changeset
     9
             'WEB_VERSION' : settings.WEB_VERSION, }
0
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10