예제 #1
0
파일: settings.py 프로젝트: socek/rotarran
 def _generate_settings(self, files=None):
     files = files or []
     factory = Factory(self.module)
     settings, paths = factory.make_settings(
         settings=self.settings,
         additional_modules=files,
     )
     settings['paths'] = paths
     return settings, paths
예제 #2
0
 def get_settings(self, module, settings={}, additional_modules=None):
     additional_modules = additional_modules or [
         ('local', False),
     ]
     self.factory = Factory('%s.application' % (module))
     settings, paths = self.factory.make_settings(
         settings=settings,
         additional_modules=additional_modules,)
     settings['paths'] = paths
     return settings, paths