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' from 'django.utils.translation' #36

Open
memoriadecalculo opened this issue Aug 30, 2022 · 0 comments

Comments

@memoriadecalculo
Copy link
Contributor

memoriadecalculo commented Aug 30, 2022

The mentioned error appears when running python3.10 and Django4.0.
Error in the following 17th line of views.py:
from django.utils.translation import ugettext as _
'ugettext_lazy' has been deprecated for django 3+.
Using 'gettext_lazy' instead without 'u', works fine.

memoriadecalculo added a commit to memoriadecalculo/django-docs that referenced this issue Aug 31, 2022
littlepea pushed a commit that referenced this issue Aug 31, 2022
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