فهرست منبع

config_from_object(str) should simply be a module not an attribute of module

Ask Solem 14 سال پیش
والد
کامیت
acc3430fe7
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      celery/loaders/base.py

+ 1 - 1
celery/loaders/base.py

@@ -94,7 +94,7 @@ class BaseLoader(object):
     def config_from_object(self, obj, silent=False):
         if isinstance(obj, basestring):
             try:
-                obj = get_cls_by_name(obj, imp=self.import_from_cwd)
+                obj = self.import_from_cwd(obj)
             except (ImportError, AttributeError):
                 if silent:
                     return False