app-engine-patch and "object_detail" view didn't work
- by Hugh
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.