def render(self, context): html = [] # JS if utils.is_devmode(): # CSS html.extend(map(self._create_css_link, getattr(settings, 'GOOG_DEV_CSS', []))) html.extend(self._render_dev_mode(context)) else: html.extend(self._render_compiled(context)) return ''.join(html)
def devmode_enabled(self, request): """Returns True iff the devmode is enabled.""" return utils.is_devmode()