def marketing_link_context_processor(request):
 marketing_urls = configuration_helpers.get_value('MKTG_URLS', settings.MKTG_URLS)
 return dict([(('MKTG_URL_' + k), marketing_link(k)) for k in (settings.MKTG_URL_LINK_MAP.viewkeys() | marketing_urls.viewkeys())])

def marketing_link_context_processor ( request ) : marketing_urls = configuration_helpers . get_value ( 'MKTG_URLS' , settings . MKTG_URLS ) return dict ( [ ( ( 'MKTG_URL_' + k ) , marketing_link ( k ) ) for k in ( settings . MKTG_URL_LINK_MAP . viewkeys ( ) | marketing_urls . viewkeys ( ) ) ] )
a django context processor to give templates access to marketing urls returns a dict whose keys are the marketing link names usable with the marketing_link method prefixed with mktg_url_ and whose values are the corresponding urls as computed by the marketing_link method .