我有以下基于类的视图。在
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'),
)
也许是进口订单的事?请尝试改用
get_queryset
。在相关问题 更多 >
编程相关推荐