On 9/6/21 12:32 AM, Philip Colmer wrote:
Abhilash Raj (maxking) has made a change to the installation documentation for setting up Mailman 3 in a virtual env (switching from uwsgi to http) and that gets my system further.
Hopefully I am replying correctly this time to the list instead of private.
I'm now at the point where Mark's suggestion regarding urlpatterns is the blocker, in that querying "https://example.com/archives/api/mailman/urls" works but "https://example.com/hyperkitty/api/mailman/urls" doesn't. > As I noted in my previous reply, I don't have a file /opt/mailman/mm/urls.py on my system. I have found venv/lib/python3.8/site-packages/mailman_web/urls.py that looks to be the file that needs to be updated. I'm on the latest version of that package, 0.0.4.
You don't *need* to update urls.py to change suburl from /archives' to
/hyperkitty`, you can just change the reference to it.
As it turns out, it is another mistake in the install docs :(
Can you update /opt/mailman/mm/mailman-hyperkitty.cfg in to use
base_url: http://127.0.0.1:8000/archives/
instead of the original
base_url: http://127.0.0.1:8000/hyperkitty/
That should fix the issue without having to edit the urls.py.
I'll go ahead and push a fix in the docs for this too.
-- thanks, Abhilash Raj (maxking)