Hi Mark,
Mark Sapiro 於 2023/7/21 12:01 寫道:
On 7/20/23 20:42, Franklin Weng wrote:
Thank you. When I set it in my settings_local.py, I clicked register and got an error:
ModuleNotFoundError at/accounts/signup/ No module named 'django_mailman3.views.user_adapter'
(In the document the path is /etc/mailman3/settings.py but I installed it with Debian packages so I guess the path is somewhat different, and I thought setting in setting_local.py should work too. It seems work since it gave me the error above.)
Do I have to install something else? Or disable some other options?
What is the version of django_mailman3 in your Debian package? As it says in the FAQ article, "You would need django-mailman3 >= 1.3.6 for these settings to work."
Debian Bullseye goes with 1.3.5, and Debian Bookworm goes with 1.3.9 but as I have said in another thread it has problems in django admin.
So I downloaded the 1.3.9 source code, extracted it, and copied django-mailman3/views/user_adapter.py to /usr/lib/python3/dist-packages/django_mailman3/views. It worked!
For a record here. Thanks for your help.
Thanks, Franklin