|
@@ -19,13 +19,16 @@ class Loader(BaseLoader):
|
|
def setup_settings(self, settingsdict):
|
|
def setup_settings(self, settingsdict):
|
|
return AttributeDict(settingsdict)
|
|
return AttributeDict(settingsdict)
|
|
|
|
|
|
|
|
+ def find_module(self, module):
|
|
|
|
+ return find_module(module)
|
|
|
|
+
|
|
def read_configuration(self):
|
|
def read_configuration(self):
|
|
"""Read configuration from :file:`celeryconfig.py` and configure
|
|
"""Read configuration from :file:`celeryconfig.py` and configure
|
|
celery and Django so it can be used by regular Python."""
|
|
celery and Django so it can be used by regular Python."""
|
|
configname = os.environ.get("CELERY_CONFIG_MODULE",
|
|
configname = os.environ.get("CELERY_CONFIG_MODULE",
|
|
DEFAULT_CONFIG_MODULE)
|
|
DEFAULT_CONFIG_MODULE)
|
|
try:
|
|
try:
|
|
- find_module(configname)
|
|
|
|
|
|
+ self.find_module(configname)
|
|
except ImportError:
|
|
except ImportError:
|
|
warnings.warn(NotConfigured(
|
|
warnings.warn(NotConfigured(
|
|
"No %r module found! Please make sure it exists and "
|
|
"No %r module found! Please make sure it exists and "
|