app-engine-patch and "object_detail" view didn't work

Posted by Hugh on Stack Overflow See other posts from Stack Overflow or by Hugh
Published on 2010-04-29T00:51:31Z Indexed on 2010/04/29 0:57 UTC
Read the original article Hit count: 316

Hi(Sorry for my ugly english) When I calling the flowing:

http://192.168.62.90:8000/blog/entry/?agphdXR1bW4xOTEychALEgpibG9nX2VudHJ5GCYM

will use this:

urlpatterns = patterns('',
    (r'^media/(?P<path>.*)$', 'django.views.static.serve',
    {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
    (r'^$', list_detail.object_list, entry_info),
    (r'^entry/(?P<object_id>.*)$', 
        list_detail.object_detail, 
        {'queryset': Entry.all(), 'template_name': 'sample_test_page.html'}),

)

and the error is:

Generic view must be called with either an object_id or a slug/slug_field.

I want to know why this didn't work for me.

© Stack Overflow or respective owner

Related posts about app-engine-patch

Related posts about django-views