[Mailman-Users] deleting archives, default sender addresses
Mark Sapiro
mark at msapiro.net
Wed Feb 27 13:15:42 EST 2019
On 2/27/19 9:46 AM, Dave McGuire wrote:
> On 2/27/19 12:09 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.
>> That is
>>
>> DEFAULT_FROM_EMAIL = 'postorius at 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>.
--
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Users
mailing list