Python django.core.urlresolvers 模块,get_callable() 实例源码

我们从Python开源项目中,提取了以下9个代码示例,用于说明如何使用django.core.urlresolvers.get_callable()

项目:CodingDojo    作者:ComputerSocietyUNB    | 项目源码 | 文件源码
def _get_failure_view():
    """
    Returns the view to be used for CSRF rejections
    """
    return get_callable(settings.CSRF_FAILURE_VIEW)
项目:DjangoBlog    作者:0daybug    | 项目源码 | 文件源码
def _get_failure_view():
    """
    Returns the view to be used for CSRF rejections
    """
    return get_callable(settings.CSRF_FAILURE_VIEW)
项目:decorate_url    作者:vorujack    | 项目源码 | 文件源码
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)
项目:trydjango18    作者:lucifer-yqh    | 项目源码 | 文件源码
def _get_failure_view():
    """
    Returns the view to be used for CSRF rejections
    """
    return get_callable(settings.CSRF_FAILURE_VIEW)
项目:trydjango18    作者:wei0104    | 项目源码 | 文件源码
def _get_failure_view():
    """
    Returns the view to be used for CSRF rejections
    """
    return get_callable(settings.CSRF_FAILURE_VIEW)
项目:website    作者:hackerspace-ntnu    | 项目源码 | 文件源码
def getEditorClass():
    global _EditorClass
    if not _EditorClass:
        _EditorClass = get_callable(settings.EDITOR)
    return _EditorClass
项目:djanoDoc    作者:JustinChavez    | 项目源码 | 文件源码
def _get_failure_view():
    """
    Returns the view to be used for CSRF rejections
    """
    return get_callable(settings.CSRF_FAILURE_VIEW)
项目:django-next-train    作者:bitpixdigital    | 项目源码 | 文件源码
def _get_failure_view():
    """
    Returns the view to be used for CSRF rejections
    """
    return get_callable(settings.CSRF_FAILURE_VIEW)
项目:django-wechat-api    作者:crazy-canux    | 项目源码 | 文件源码
def _get_failure_view():
    """
    Returns the view to be used for CSRF rejections
    """
    return get_callable(settings.CSRF_FAILURE_VIEW)