Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'ugettext_lazy' from 'django.utils.translation' (/usr/local/lib/python3.11/site-packages/django/utils/translation/__init__.py) #445

Open
s2tu opened this issue Feb 9, 2025 · 0 comments

Comments

@s2tu
Copy link

s2tu commented Feb 9, 2025

In Django 4.0 + the package ugettext_lazy is deprecated. I was facing a issue similar to the below article. I had to make the same change in the following file:

/usr/local/lib/python3.11/site-packages/django/utils/translation/init.py

https://edwinodhiambo.medium.com/importerror-cannot-import-name-ugettext-lazy-from-django-utils-translation-d1788e17cb11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant