Tuesday, January 4, 2011

ImportError cannot import name DetailView

While completing "Writing your first Django app, part 4", I ran into
an error. I have almost completed the online tutorial, but using the
code verbatum, I get this error. I even went as far as to cut and
paste the code, rather than typing it as I usually do, just in case I
made a simple error I could not see.

Exception Location: C:\DjangoProjects\mysite\polls\urls.py in
<module>, line 2

Copy of line 2 of urls.py..... from django.views.generic import
DetailView, ListView

Anyone have any ideas?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment