Skip to content

ImportError: cannot import name 'ugettext' from 'django.utils.translation' #36

@memoriadecalculo

Description

@memoriadecalculo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions