Re: Heads up: settings.ACCOUNT_AUTHENTICATION_METHOD is deprecated
This issue is still there for me. I am starting a new installation from scratch, with the venv method in 3.13.
(venv) root@darni ~ # mailman-web migrate System check identified some issues:
WARNINGS: ?: settings.ACCOUNT_AUTHENTICATION_METHOD is deprecated, use: settings.ACCOUNT_LOGIN_METHODS = {'email', 'username'} ?: settings.ACCOUNT_EMAIL_REQUIRED is deprecated, use: settings.ACCOUNT_SIGNUP_FIELDS = ['email*', 'username*', 'password1*', 'password2*'] Operations to perform: Apply all migrations: account, admin, auth, contenttypes, django_mailman3, django_q, hyperkitty, postorius, sessions, sites, socialaccount Running migrations: No migrations to apply.
I have
root@darni /etc/mailman3 # head -15 /etc/mailman3/settings.py # Mailman Web configuration file. # /etc/mailman3/settings.py
# Get the default settings. from mailman_web.settings.base import * from mailman_web.settings.mailman import *
# Settings below supplement or override the defaults. # see https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/thread/U... del ACCOUNT_AUTHENTICATION_METHOD ACCOUNT_LOGIN_METHODS = {'email', 'username'} del ACCOUNT_EMAIL_REQUIRED ACCOUNT_SIGNUP_FIELDS = ['email*', 'username*', 'password1*', 'password2*']
Which is what I believe Wikinaut suggested works for her/him. But the warning is still there.
I added Marks suggestions to add verbiage in the actual codebase
root@darni /etc/mailman3 # tail -17 /usr/local/mailman/venv/lib/python3.13/site-packages/mailman_web/settings/mailman.py ### added by ToK
#: Django Allauth #ACCOUNT_AUTHENTICATION_METHOD = "username_email" #ACCOUNT_EMAIL_REQUIRED = True #ACCOUNT_EMAIL_VERIFICATION = "mandatory" #ACCOUNT_UNIQUE_EMAIL = True
ACCOUNT_LOGIN_METHODS = {'email', 'username'} ACCOUNT_SIGNUP_FIELDS = ['username*', 'email*', 'password1*', 'password2*'] ACCOUNT_EMAIL_VERIFICATION = "mandatory" ACCOUNT_UNIQUE_EMAIL = True ACCOUNT_EMAIL_UNKNOWN_ACCOUNTS = False
del ACCOUNT_EMAIL_REQUIRED ACCOUNT_SIGNUP_FIELDS = ['username*', 'email*', 'password1*', 'password2*']
Restarted
root@darni /etc/mailman3 # systemctl restart mailman3 ; systemctl restart mailmanweb
Same old.
(venv) root@darni ~ # mailman-web migrate System check identified some issues:
WARNINGS: ?: settings.ACCOUNT_AUTHENTICATION_METHOD is deprecated, use: settings.ACCOUNT_LOGIN_METHODS = {'email', 'username'} ?: settings.ACCOUNT_EMAIL_REQUIRED is deprecated, use: settings.ACCOUNT_SIGNUP_FIELDS = ['email*', 'username*', 'password1*', 'password2*'] Operations to perform: Apply all migrations: account, admin, auth, contenttypes, django_mailman3, django_q, hyperkitty, postorius, sessions, sites, socialaccount Running migrations: No migrations to apply.
Maybe I missunderstood something.
-- Written by Thomas Krichel http://openlib.org/home/krichel on his 22190th day.
On Fri, Mar 6, 2026 at 10:25 AM Thomas Krichel <krichel@openlib.org> wrote:
This issue is still there for me. I am starting a new installation from scratch, with the venv method in 3.13.
(venv) root@darni ~ # mailman-web migrate System check identified some issues:
WARNINGS: ?: settings.ACCOUNT_AUTHENTICATION_METHOD is deprecated, use: settings.ACCOUNT_LOGIN_METHODS = {'email', 'username'} ?: settings.ACCOUNT_EMAIL_REQUIRED is deprecated, use: settings.ACCOUNT_SIGNUP_FIELDS = ['email*', 'username*', 'password1*', 'password2*'] Operations to perform: Apply all migrations: account, admin, auth, contenttypes, django_mailman3, django_q, hyperkitty, postorius, sessions, sites, socialaccount Running migrations: No migrations to apply.
I have
root@darni /etc/mailman3 # head -15 /etc/mailman3/settings.py # Mailman Web configuration file. # /etc/mailman3/settings.py
# Get the default settings. from mailman_web.settings.base import * from mailman_web.settings.mailman import *
# Settings below supplement or override the defaults. # see https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/thread/U. .. del ACCOUNT_AUTHENTICATION_METHOD ACCOUNT_LOGIN_METHODS = {'email', 'username'} del ACCOUNT_EMAIL_REQUIRED ACCOUNT_SIGNUP_FIELDS = ['email*', 'username*', 'password1*', 'password2*']
Which is what I believe Wikinaut suggested works for her/him. But the warning is still there.
I added Marks suggestions to add verbiage in the actual codebase
root@darni /etc/mailman3 # tail -17 /usr/local/mailman/venv/lib/python3.13/site-packages/mailman_web/settings/mailman.py ### added by ToK
#: Django Allauth #ACCOUNT_AUTHENTICATION_METHOD = "username_email" #ACCOUNT_EMAIL_REQUIRED = True #ACCOUNT_EMAIL_VERIFICATION = "mandatory" #ACCOUNT_UNIQUE_EMAIL = True
ACCOUNT_LOGIN_METHODS = {'email', 'username'} ACCOUNT_SIGNUP_FIELDS = ['username*', 'email*', 'password1*', 'password2*'] ACCOUNT_EMAIL_VERIFICATION = "mandatory" ACCOUNT_UNIQUE_EMAIL = True ACCOUNT_EMAIL_UNKNOWN_ACCOUNTS = False
del ACCOUNT_EMAIL_REQUIRED ACCOUNT_SIGNUP_FIELDS = ['username*', 'email*', 'password1*', 'password2*']
Restarted
root@darni /etc/mailman3 # systemctl restart mailman3 ; systemctl restart mailmanweb
Same old.
(venv) root@darni ~ # mailman-web migrate System check identified some issues:
WARNINGS: ?: settings.ACCOUNT_AUTHENTICATION_METHOD is deprecated, use: settings.ACCOUNT_LOGIN_METHODS = {'email', 'username'} ?: settings.ACCOUNT_EMAIL_REQUIRED is deprecated, use: settings.ACCOUNT_SIGNUP_FIELDS = ['email*', 'username*', 'password1*', 'password2*'] Operations to perform: Apply all migrations: account, admin, auth, contenttypes, django_mailman3, django_q, hyperkitty, postorius, sessions, sites, socialaccount Running migrations: No migrations to apply.
Maybe I missunderstood something.
Something was said about MM3 and Python-3.13. I just don't remember it well, but there were some incompatibility issues. Perhaps it's better you do an alt-install of Python-3.12 and use that env until the issues are addressed?
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html]
Washington Odhiambo writes
Something was said about MM3 and Python-3.13. I just don't remember it well, but there were some incompatibility issues.
When 3.13 became the default instance of python, the Debian package
Perhaps it's better you do an alt-install of Python-3.12 and use that env until the issues are addressed?
Well this specific issue does not look like a python problem. And I believe it is better to move ahead, be it at the expense of me having to do additional research.
-- Written by Thomas Krichel http://openlib.org/home/krichel on his 22191st day.
On 3/5/26 23:25, Thomas Krichel wrote:
I have
root@darni /etc/mailman3 # head -15 /etc/mailman3/settings.py # Mailman Web configuration file. # /etc/mailman3/settings.py
# Get the default settings. from mailman_web.settings.base import * from mailman_web.settings.mailman import *
# Settings below supplement or override the defaults. # see https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/thread/U... del ACCOUNT_AUTHENTICATION_METHOD ACCOUNT_LOGIN_METHODS = {'email', 'username'} del ACCOUNT_EMAIL_REQUIRED ACCOUNT_SIGNUP_FIELDS = ['email*', 'username*', 'password1*', 'password2*']
These are good.
root@darni /etc/mailman3 # tail -17 /usr/local/mailman/venv/lib/python3.13/site-packages/mailman_web/settings/mailman.py ### added by ToK
#: Django Allauth #ACCOUNT_AUTHENTICATION_METHOD = "username_email" #ACCOUNT_EMAIL_REQUIRED = True #ACCOUNT_EMAIL_VERIFICATION = "mandatory" #ACCOUNT_UNIQUE_EMAIL = True
ACCOUNT_LOGIN_METHODS = {'email', 'username'} ACCOUNT_SIGNUP_FIELDS = ['username*', 'email*', 'password1*', 'password2*'] ACCOUNT_EMAIL_VERIFICATION = "mandatory" ACCOUNT_UNIQUE_EMAIL = True ACCOUNT_EMAIL_UNKNOWN_ACCOUNTS = False
del ACCOUNT_EMAIL_REQUIRED ACCOUNT_SIGNUP_FIELDS = ['username*', 'email*', 'password1*', 'password2*']
These should be unnecessary as the ones that actually change anything are overridden by the above changes in /etc/mailman3/settings.py.
Restarted
root@darni /etc/mailman3 # systemctl restart mailman3 ; systemctl restart mailmanweb
Same old.
(venv) root@darni ~ # mailman-web migrate System check identified some issues:
WARNINGS: ?: settings.ACCOUNT_AUTHENTICATION_METHOD is deprecated, use: settings.ACCOUNT_LOGIN_METHODS = {'email', 'username'} ?: settings.ACCOUNT_EMAIL_REQUIRED is deprecated, use: settings.ACCOUNT_SIGNUP_FIELDS = ['email*', 'username*', 'password1*', 'password2*']
what does
mailman-web diffsettings|grep ACCOUNT
report?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thank you Mark. You write
what does
mailman-web diffsettings|grep ACCOUNT
report?
mailman@darni:/root$ cd
mailman@darni:~$ cd /usr/local/mailman/
mailman@darni:/usr/local/mailman$ source venv/bin/activate (venv) mailman@darni:/usr/local/mailman$ mailman-web diffsettings|grep ACCOUNT Traceback (most recent call last): File "/usr/local/mailman/venv/bin/mailman-web", line 6, in <module> sys.exit(main()) ~~~~^^ File "/usr/local/mailman/venv/lib/python3.13/site-packages/mailman_web/manage.py", line 87, in main execute_from_command_line(sys.argv) ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^ File "/usr/local/mailman/venv/lib/python3.13/site-packages/django/core/management/__init__.py", line 442 utility.execute() ~~~~~~~~~~~~~~~^^ File "/usr/local/mailman/venv/lib/python3.13/site-packages/django/core/management/__init__.py", line 382 settings.INSTALLED_APPS File "/usr/local/mailman/venv/lib/python3.13/site-packages/django/conf/__init__.py", line 102, in __geta self._setup(name) ~~~~~~~~~~~^^^^^^ File "/usr/local/mailman/venv/lib/python3.13/site-packages/django/conf/__init__.py", line 89, in _setup self._wrapped = Settings(settings_module) ~~~~~~~~^^^^^^^^^^^^^^^^^ File "/usr/local/mailman/venv/lib/python3.13/site-packages/django/conf/__init__.py", line 217, in __init mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module return _bootstrap._gcd_import(name[level:], package, level) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 1023, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/etc/mailman3/settings.py", line 12, in <module> del ACCOUNT_EMAIL_REQUIRED ^^^^^^^^^^^^^^^^^^^^^^ NameError: name 'ACCOUNT_EMAIL_REQUIRED' is not defined
I remove the additional lines Mark thinks are not necessary in
/usr/local/mailman/venv/lib/python3.13/site-packages/mailman_web/settings/mailman.py
and restart but that gets my to another problem.
-- Written by Thomas Krichel http://openlib.org/home/krichel on his 22191st day.
Thank you Mark. You write
what does
mailman-web diffsettings|grep ACCOUNT
report?
mailman@darni:/root$ cd
mailman@darni:~$ cd /usr/local/mailman/
mailman@darni:/usr/local/mailman$ source venv/bin/activate (venv) mailman@darni:/usr/local/mailman$ mailman-web diffsettings|grep ACCOUNT Traceback (most recent call last): File "/usr/local/mailman/venv/bin/mailman-web", line 6, in <module> sys.exit(main()) ~~~~^^ File "/usr/local/mailman/venv/lib/python3.13/site-packages/mailman_web/manage.py", line 87, in main execute_from_command_line(sys.argv) ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^ File "/usr/local/mailman/venv/lib/python3.13/site-packages/django/core/management/__init__.py", line 442 utility.execute() ~~~~~~~~~~~~~~~^^ File "/usr/local/mailman/venv/lib/python3.13/site-packages/django/core/management/__init__.py", line 382 settings.INSTALLED_APPS File "/usr/local/mailman/venv/lib/python3.13/site-packages/django/conf/__init__.py", line 102, in __geta self._setup(name) ~~~~~~~~~~~^^^^^^ File "/usr/local/mailman/venv/lib/python3.13/site-packages/django/conf/__init__.py", line 89, in _setup self._wrapped = Settings(settings_module) ~~~~~~~~^^^^^^^^^^^^^^^^^ File "/usr/local/mailman/venv/lib/python3.13/site-packages/django/conf/__init__.py", line 217, in __init mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module return _bootstrap._gcd_import(name[level:], package, level) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 1023, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/etc/mailman3/settings.py", line 12, in <module> del ACCOUNT_EMAIL_REQUIRED ^^^^^^^^^^^^^^^^^^^^^^ NameError: name 'ACCOUNT_EMAIL_REQUIRED' is not defined
I remove the additional lines Mark thinks are not necessary in
/usr/local/mailman/venv/lib/python3.13/site-packages/mailman_web/settings/mailman.py
and restart but that gets my to another problem.
--
Written by Thomas Krichel http://openlib.org/home/krichel on his 22191st day.
On 3/6/26 23:05, Thomas Krichel wrote:
(venv) mailman@darni:/usr/local/mailman$ mailman-web diffsettings|grep ACCOUNT Traceback (most recent call last):
...
File "/etc/mailman3/settings.py", line 12, in <module> del ACCOUNT_EMAIL_REQUIRED ^^^^^^^^^^^^^^^^^^^^^^ NameError: name 'ACCOUNT_EMAIL_REQUIRED' is not defined
This is because you have two del ACCOUNT_EMAIL_REQUIRED statements,
one you added to
/usr/local/mailman/venv/lib/python3.13/site-packages/mailman_web/settings/mailman.py
and one in /etc/mailman3/settings.py, but why doesn't this show up
earlier? It should throw this exception everywhere.
I remove the additional lines Mark thinks are not necessary in
/usr/local/mailman/venv/lib/python3.13/site-packages/mailman_web/settings/mailman.py
and restart but that gets my to another problem.
Which is?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
Mark Sapiro -
Thomas Krichel -
Washington Odhiambo