Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (11 sloc) 0.35 kb
# -*- coding: utf-8 -*-
from cms.utils.conf import get_cms_setting
from cms.utils import get_template_from_request
def cms_settings(request):
"""
Adds cms-related variables to the context.
"""
return {
'CMS_MEDIA_URL': get_cms_setting('MEDIA_URL'),
'CMS_TEMPLATE': lambda: get_template_from_request(request),
}
Jump to Line
Something went wrong with that request. Please try again.