On 10/27/2016 11:55 AM, Leon wrote:
Latest mailman-bundle, Hyperkitty==1.0.3, python-social-auth==0.2.21.
Im trying to implement a custom authentication backend by following a tutorial. In the tutorial, the version of hyperkitty is actually 1.0.4, and the whole thing works well. However, it didn't work on top of 1.0.3. I can find this function in commit 1755122c https://gitlab.com/mailman/hyperkitty/commit/1755122c708abc96933142ca77dd0ff...
HyperKitty and Postorius have switched from using Persona and SocialAuth to using Django Allauth. Mailman bundler is not yet compatible with this. at a minimum you need to also install django-mailman3 and make config changes. See https://wiki.list.org/x/17891998 for potentially helpful stuff.
Also note, rather than posting a png screenshot of an error screen, it's much better to just copy/paste the text.
And when mentioning that you are following a tutorial, it would help us if you provide a link to it so we can see what it says.
Thank you. I have followed the instruction( https://wiki.list.org/DOC/Mailman%203%20installation%20experience)%E2%80%8B. urls.py, production.py and settings_local.py have been changed. I got an ImportError.
Traceback (most recent call last):
File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
self.result = application(self.environ, self.start_response)
File "/opt/mailman/mailman-bundler/eggs/Django-1.8.15-py2.7.egg/django/contrib/staticfiles/handlers.py", line 63, in __call__
return self.application(environ, start_response)
File "/opt/mailman/mailman-bundler/eggs/Django-1.8.15-py2.7.egg/django/core/handlers/wsgi.py", line 170, in __call__
File "/opt/mailman/mailman-bundler/eggs/Django-1.8.15-py2.7.egg/django/core/handlers/base.py", line 50, in load_middleware
mw_class = import_string(middleware_path)
File "/opt/mailman/mailman-bundler/eggs/Django-1.8.15-py2.7.egg/django/utils/module_loading.py", line 26, in import_string
module = import_module(module_path)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
ImportError: No module named middleware