[Mailman-Users] deleting archives, default sender addresses

Dave McGuire mcguire at neurotica.com
Wed Feb 27 13:35:30 EST 2019


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 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>.

  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


More information about the Mailman-Users mailing list