4👍
✅
loading
class has been removed in django 1.9 so that’s why you are getting the error. Instead you can use apps
class.
>>> from django.apps import apps
EDIT:
generic
class is also removed in v1.9 and functionality has been moved to models class and fields class.
>>> from django.contrib.contenttypes.models import ContentType
>>> from django.contrib.contenttypes.fields import GenericForeignKey
More info can be found here
Source:stackexchange.com