I’m using an older textbook, and the guide is telling me to include the following imports in my
from django.views.generic.list_detail import object_list, object_detail from django.views.generic.create_update import create_update
From what I understand, these have been deprecated in an earlier version of Django – but I can’t figure out what the modern implementation would be.
Would that also affect my url patterns?
url(r'^$', object_list, dict(display_info, allow_empty=True)), url(r'^(?P<object_id>d+)/$', object_detail, display_info), url(r'^add/$', create_object, create_info),
Any help is appreciated.