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
runserver, when it's running in non-debug mode, does not serve static files. You should put it behind some reverse proxy, for example nginx. Take a look at example config here: https://github.com/allegro/ralph/blob/ng/contrib/ralph.conf.nginx