我们从Python开源项目中,提取了以下4个代码示例,用于说明如何使用django.urls.get_callable()。
def build_views(self): for view_str in self.view_list: view = get_callable(view_str) view(_exporting_event=self._exporting_event).build_method()
def _get_failure_view(): """ Returns the view to be used for CSRF rejections """ return get_callable(settings.CSRF_FAILURE_VIEW)