E-mails sent from Django appear as webmaster@host.domain.tld

Overview E-mails sent from a Django application may use “webmaster@host.domain.tld” or another erroneous address as the From field. Cause ServerAdmin values are not set in Apache configuration for virtual hosts to prevent unintentional information leakage. Solution Set DEFAULT_FROM_EMAIL and SERVER_EMAIL in your Django settings file. An example configuration follows: EMAIL_HOST=’localhost’ EMAIL_PORT=’587′ EMAIL_HOST_USER=’myadmin@mydomain.com’ EMAIL_PASSWORD=’mysmtppassword’ DEFAULT_FROM_EMAIL=EMAIL_HOST_USER SERVER_EMAIL=EMAIL_HOST_USER Replace EMAIL_HOST_USER and EMAIL_PASSWORD values with your…

Django quickstart

Overview Django is a web framework based on Python. Python is available on all packages, and a Django application may be uploaded on any package. But, to create a new project on the server and complete this quickstart, a package with terminal access is necessary. This quickstart covers using Django with Passenger available on v6+ platforms. Quickstart From…