>>> import django.views.generic >>> dir (django.views.generic) ['GenericViewError', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', 'list_detail']
ok, I can see list_detail now :-) ... but the other? maybe a problem with my installation ... On 23 Nov., 17:37, Michael Sprayberry <[email protected]> wrote: > Steph, > > those instructions are incorrect try > from djanog.views.generic import list_view, list_detail > > Michael > > --- On Tue, 11/23/10, steph <[email protected]> wrote: > > From: steph <[email protected]> > Subject: tutorial part 4: ImportError > To: "Django users" <[email protected]> > Date: Tuesday, November 23, 2010, 11:06 AM > > Hi group, > > I'm new - just worked thgough the tutorial. In part 4 about the use of > generic views I've got a problem - I can't import ListView and > DetailView: > > >>> from django.views.generic import DetailView > > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ImportError: cannot import name DetailView>>> from django.views.generic > import ListView > > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ImportError: cannot import name ListView > > I'm on the newest version of django: first tried with version 1.2.3, > then I upgraded to 1.3 alpha - same problem. > > Any clues? > > thanks, > stephan > > ps: other than that it's a great tutorial! > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

