de django.utils.translation import ugettext_lazy as _
Use this instead of that beacause that was removed in latest version :
from django.utils.translation import gettext_lazy as _
Rajanit Navapara