Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(1)  |  Derive(0)  |  Import(2)
Returns the module to be used as the settings for this
project. If `module_name` is None (default) get_settings_module_name
is used.

        def get_settings_module(module_name=None):
    """
    Returns the module to be used as the settings for this
    project. If `module_name` is None (default) get_settings_module_name
    is used.
    """
    module_name = module_name or get_settings_module_name()
    try:
        module = importlib.import_module(module_name)
    except ImportError:
        err_msg = 'Could not import settings module "%s"' % (module_name)
        raise ImportError(err_msg)

    return module
        


src/p/y/pyrocumulus-0.4.2.1/pyrocumulus/db.py   pyrocumulus(Download)
 
from mongoengine import connect
from pyrocumulus.conf import get_settings_module
 
 

src/p/y/pyrocumulus-0.4.2.1/functional_tests/test_autoapi.py   pyrocumulus(Download)
                                EmbeddedDocumentField, ListField)
from pyrocumulus.web.applications import RestApplication
from pyrocumulus.conf import get_settings_module
from pyrocumulus.db import MongoConnection
from pyrocumulus.testing import TornadoApplicationTestCase
 
 
settings = get_settings_module()