It sounds like you're using the 1.3 or later version of the tutorial.
Class-based generic views were added in 1.3. Try this link for the
correct version:
https://docs.djangoproject.com/en/1.2/intro/tutorial01/
(Note the 1.2 in the URL.)
Hope that helps,
Brett
>--
>You received this message because you are subscribed to the Google Groups
>"Django users" group.
>To post to this group, send email to django...@googlegroups.com.
>To unsubscribe from this group, send email to
>django-users...@googlegroups.com.
>For more options, visit this group at
>http://groups.google.com/group/django-users?hl=en.
>
Cheers, Bob
from django.conf.urls.defaults import *
from polls.models import Poll
info_dict = {
'queryset': Poll.objects.all(),
}
urlpatterns = patterns('',
(r'^$', 'django.views.generic.list_detail.object_list', info_dict),
....
The error message is
ViewDoesNotExist at /polls/
Could not import polls.views.django.views.generic.list_detail. Error was: No
module named django.views.generic.list_detail
List_detail is clearly there in the django/generic folder.
Cheers, Bob
-----Original Message-----
From: django...@googlegroups.com [mailto:django...@googlegroups.com] On
Behalf Of Brett Epps
Sent: Monday, February 13, 2012 10:12
To: django...@googlegroups.com
Subject: Re: Django setup on Win7 - can't import some things
...
urlpatterns = patterns('polls.views',
...
instead of the empty string first argument to patterns that you show?