feincms.utils — General utilities

feincms.utils.get_object(path[, fail_silently])

Helper function which can be used to import a python object. path should be the absolute dotted path to the object. You can optionally pass fail_silently=True if the function should not raise an Exception in case of a failure to import the object:

MyClass = get_object('module.MyClass')

myfunc = get_object('anothermodule.module2.my_function', fail_silently=True)