ImportError: cannot import name 'ugettext_lazy' from 'django.utils.translation'

Also here’s the relevant section in the Django 3.0 release notes, which tells you the names of the new functions: Django 3.0 release notes | Django documentation | Django

If you have a bunch of code using this function or similar that needs updating, check out my tool django-upgrade, which can do it automatically for you: GitHub - adamchainz/django-upgrade: Automatically upgrade your Django projects.

1 Like