django-admin-honeypot
django-admin-honeypot copied to clipboard
ImportError: cannot import name 'ugettext_lazy' from 'django.utils.translation
ugettext_lazy its depricated in django 3 + please update the latest release that support django 4+
For now, use this workaround.
https://github.com/dmpayton/django-admin-honeypot/issues/91#issuecomment-1247269152
Hoping this gets resolved too, as it breaks new projects and deployments and needs customizing CI pipelines
I also facing this error.😟
from django.utils.translation import gettext_lazy as _
I think a rewrite is needed for newer versions of Django
For now, use this workaround.
Hoping this gets resolved too, as it breaks new projects and deployments and needs customizing CI pipelines
Its the end of August and this is still a present issue. I was really hoping to add this package to my django 4 project.
For now, use this workaround. #91 (comment) Hoping this gets resolved too, as it breaks new projects and deployments and needs customizing CI pipelines
Its the end of August and this is still a present issue. I was really hoping to add this package to my django 4 project.
I was able to find an updated version, use 'pip install django-admin-honeypot-updated-2021' instead for django 4 projects
You can manually update the existing lines by
from django.utils.translation import gettext_lazy as _
there will be one more error of
honeypot = Signal(providing_args=['instance', 'request'])
TypeError: Signal.__init__() got an unexpected keyword argument 'providing_args'
just remove the "providing_args=['instance', 'request']"
Has this repository been abandoned? It's been two years since this issue was originally reported.