From a7c18b98d062f773f90be584c61e558713a50d1f Mon Sep 17 00:00:00 2001 From: jordan Date: Thu, 28 Jul 2011 13:18:52 +0000 Subject: [PATCH] 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 --- forum/settings/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) 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() -- 2.39.5