不存在。未提供异常

2024-10-04 01:29:26 发布

您现在位置:Python中文网/ 问答频道 /正文

我有以下基于类的视图。在

class AllPluginsView(ListView):
    queryset = get_models(get_app('plugins'))
    template_name="console/plugins/plugins.html"
    context_object_name = "objects"

以及以下模板

^{pr2}$

当我请求页面时,我得到DoesNotExist at /path/to/plugins No exception supplied.错误。有什么想法吗?在

urlpatterns = patterns('',
    url(r'^$', AllPluginsView.as_view(),name='all-plugins'),
)

Tags: name视图appgetobjectmodelshtmlcontext