Try to search your question here, if you can't find : Ask Any Question Now ?

Deprecated Package Syntax in Django

HomeCategory: stackoverflowDeprecated Package Syntax in Django
Avatarpushpa asked 4 months ago

I’m using an older textbook, and the guide is telling me to include the following imports in my urls.py

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.

1 Answers
Best Answer
AvatarMannu answered 4 months ago
Your Answer

13 + 7 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com