From: jordan Date: Thu, 28 Jul 2011 13:18:52 +0000 (+0000) Subject: be able to import all module settings as well X-Git-Tag: live~184 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/a7c18b98d062f773f90be584c61e558713a50d1f be able to import all module settings as well git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1129 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/settings/__init__.py b/forum/settings/__init__.py index 4596605..87b80a1 100644 --- a/forum/settings/__init__.py +++ b/forum/settings/__init__.py @@ -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()