No module named list_detail

41 views
Skip to first unread message

Jose Hernando Valencia Pimienta

unread,
Nov 23, 2017, 11:12:01 AM11/23/17
to Django users
I obtain this error using django 1.8.18: can you help me?

ImportError No module named list_detail

C:\Python27\lib\site-packages\profiles\views.py
 in <module>
  1.             from django.views.generic.list_detail import object_list

Andréas Kühne

unread,
Nov 23, 2017, 11:26:50 AM11/23/17
to django...@googlegroups.com
Hi,

You have got this because the code you are using is for an older version of django. The object_list functionality has been moved to ListView in the generics package. See here: https://docs.djangoproject.com/en/1.11/ref/class-based-views/generic-display/#listview

The object_list functionality was removed in 1.3 see here: https://django.readthedocs.io/en/1.3.X/topics/generic-views.html

Best regards,

Andréas

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3876c3ea-1d9c-409a-9cd9-00427e323a25%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages