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