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@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 <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
------------------------------------------------------
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

Reply via email to