def enable_theming():
 if hasattr(settings, 'COMPREHENSIVE_THEME_DIR'):
  logger.warning('\x1b[93m \nDeprecated: \n DCTB COMPREHENSIVE_THEME_DIR setting has been deprecated in favor of COMPREHENSIVE_THEME_DIRS.\x1b[00m')
 for theme in get_themes():
  if (theme.themes_base_dir not in settings.MAKO_TEMPLATES['main']):
   settings.MAKO_TEMPLATES['main'].insert(0, theme.themes_base_dir)
 _add_theming_locales()

def enable_theming ( ) : if hasattr ( settings , 'COMPREHENSIVE_THEME_DIR' ) : logger . warning ( '\x1b[93m \nDeprecated: \n DCTB COMPREHENSIVE_THEME_DIR setting has been deprecated in favor of COMPREHENSIVE_THEME_DIRS.\x1b[00m' ) for theme in get_themes ( ) : if ( theme . themes_base_dir not in settings . MAKO_TEMPLATES [ 'main' ] ) : settings . MAKO_TEMPLATES [ 'main' ] . insert ( 0 , theme . themes_base_dir ) _add_theming_locales ( )
add directories and relevant paths to settings for comprehensive theming .