feincms.utils — General utilities¶
-
feincms.utils.get_object(path[, fail_silently])¶ Helper function which can be used to import a python object.
pathshould be the absolute dotted path to the object. You can optionally passfail_silently=Trueif the function should not raise anExceptionin case of a failure to import the object:MyClass = get_object('module.MyClass') myfunc = get_object('anothermodule.module2.my_function', fail_silently=True)