]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/settings/__init__.py
be able to import all module settings as well
[osqa.git] / forum / settings / __init__.py
index 4596605abd4b11f818bf7bc8085e4b1e8a0a57b1..87b80a183595dfe06596b701e3fb569fa5fb1d2e 100644 (file)
@@ -48,6 +48,13 @@ from urls import *
 from accept import *
 from sitemaps import *
 
+# Be able to import all module settings as well
+for m in djsettings.MODULE_LIST:
+    try:
+        exec 'from %s.settings import *' % m.__name__
+    except:
+        pass
+
 BADGES_SET = SettingSet('badges', _('Badges config'), _("Configure badges on your OSQA site."), 500)
 
 #__all__ = locals().keys()