Good day! I tried add email notification and have some trouble...
Use local SMTP based on Postfix service
from django.core.mail import EmailMessage
msg = EmailMessage('Test subj', 'Test text', 'Ralph notify ralph@local', ['email@example.com'])
and i receive error - please run connect() first... however, this code in new django project from shell successfully sending email :(
[Unit] Description=Ralph 3 After=network.target [Service] EnvironmentFile=-/etc/default/ralph ExecStart=/opt/ralph/ralph-core/bin/ralph runserver $LISTEN Restart=on-failure [Install] WantedBy=multi-user.target Alias=ralph.service