我们从Python开源项目中,提取了以下9个代码示例,用于说明如何使用django.core.urlresolvers.get_callable()。
def _get_failure_view(): """ Returns the view to be used for CSRF rejections """ return get_callable(settings.CSRF_FAILURE_VIEW)
def callback(self): if self._callback is not None: return self._decorate(self._callback) self._callback = get_callable(self._callback_str) return self._decorate(self._callback)
def getEditorClass(): global _EditorClass if not _EditorClass: _EditorClass = get_callable(settings.EDITOR) return _EditorClass