示例#1
0
 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)
示例#2
0
 def devmode_enabled(self, request):
     """Returns True iff the devmode is enabled."""
     return utils.is_devmode()
示例#3
0
 def devmode_enabled(self, request):
     """Returns True iff the devmode is enabled."""
     return utils.is_devmode()