<s> """<STR_LIT>""" <EOL> import json <EOL> from django import template <EOL> from django . conf import settings <EOL> from djangular . core . urlresolvers import urls_by_namespace <EOL> register = template . Library ( ) <EOL> @ register . simple_tag <EOL> def namespaced_urls ( ) : <EOL> """<STR_LIT>""" <EOL> apps = settings . BE_URL_APPS <EOL> app_urls = dict ( ( app , urls_by_namespace ( app ) ) for app in apps ) <EOL> app_urls = json . dumps ( app_urls ) <EOL> return app_urls </s>
