Permalink
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (11 sloc) 431 Bytes
"""Context processors for Page CMS."""
from pages import settings
def media(request):
"""Adds media-related variables to the `context`."""
return {
'PAGES_MEDIA_URL': settings.PAGES_MEDIA_URL,
'PAGES_STATIC_URL': settings.PAGES_STATIC_URL,
'PAGE_USE_SITE_ID': settings.PAGE_USE_SITE_ID,
'PAGE_HIDE_SITES': settings.PAGE_HIDE_SITES,
'PAGE_LANGUAGES': settings.PAGE_LANGUAGES,
}