+from forum import modules
+
+modules.init_modules_engine(SITE_SRC_ROOT, DISABLED_MODULES)
+
+[MIDDLEWARE_CLASSES.extend(
+ ["%s.%s" % (m.__name__, mc) for mc in getattr(m, 'MIDDLEWARE_CLASSES', [])]
+ ) for m in modules.MODULE_LIST]
+
+[TEMPLATE_LOADERS.extend(
+ ["%s.%s" % (m.__name__, tl) for tl in getattr(m, 'TEMPLATE_LOADERS', [])]
+ ) for m in modules.MODULE_LIST]
+
+