On 2/27/19 1:15 PM, Mark Sapiro wrote: >>> See <https://gitlab.com/mailman/hyperkitty/issues/3> >> >> Ok, thanks for the pointer. I hate to as a stupid question, but how >> do I actually run that snippet? At an REPL prompt I assume, but are >> there imports, etc? > > You need to run the Django management command 'shell', e.g. > 'django-admin shell' or 'manage.py shell' or however you spell it. This > will give you a python shell and you enter the commands at the '>>>' > prompts.
Ah! That worked perfectly. Is it obvious that I'm new to Django? ;) >>> DEFAULT_FROM_EMAIL = 'postorius@localhost.local' >>> >>> in your Django settings.py. Put your desired override in settings_local.py. >> >> Perfect! That worked. I could've sworn I set that last night and it >> didn't work, but perhaps I hadn't restarted Mailman. (it was late..) >> But I rebooted the VM this morning to install some patches. > > Rebooting will do it. Restarting Mailman won't as this is a Django > setting, not a Mailman setting. How to update that without a reboot > depends on how you run your Django wsgi app. With mod_wsgi, just > touching the wsgi.py file will do. With gunicorn, I just restart > gunicorn. I'm not sure about uwsgi, I don't use it, but see > <https://uwsgi-docs.readthedocs.io/en/latest/articles/TheArtOfGracefulReloading.html>. That makes sense. I was not aware that restarting Mailman would not restart Django. Thank you again, Mark, for your time. I appreciate your help. -Dave -- Dave McGuire, AK4HZ New Kensington, PA ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org