Para corrigir a compatibilidade da biblio django-admin-honeypot==1.1.0 com o Django==4.2.2, é necessário:
Alterar nos arquivos:
\venv\Lib\site-packages\admin_honeypot\models.py
\venv\Lib\site-packages\admin_honeypot\admin.py
\venv\Lib\site-packages\admin_honeypot\views.py
De:
from django.utils.translation import ugettext as _
Para:
from django.utils.translation import gettext as _
Alterar no arquivo:
\venv\Lib\site-packages\admin_honeypot\signals.py
De:
honeypot = Signal(providing_args=['instance', 'request'])
Para:
honeypot = Signal('request')
Alterar no arquivo:
\venv\Lib\site-packages\admin_honeypot\urls.py
De:
from admin_honeypot import views
from django.conf.urls import url
app_name = 'admin_honeypot'
urlpatterns = [
url(r'^login/$', views.AdminHoneypot.as_view(), name='login'),
url(r'^.*$', views.AdminHoneypot.as_view(), name='index'),
Para:
from admin_honeypot import views
from django.urls import re_path
app_name = 'admin_honeypot'
urlpatterns = [
re_path(r'^login/$', views.AdminHoneypot.as_view(), name='login'),
re_path(r'^.*$', views.AdminHoneypot.as_view(), name='index'),
Com essas alterações, não será mais necessário fazer downgrade de versão do Django.
Espero ter ajudado. Abraços.