Django is expecting a working SMTP server listening at localhost, sendmail for instance.
Another option is to add attributes in settings.py, this make email work only when there is a localhost server accepting all the email. To change this and make it configurable, we only have to add these lines:
Another option is to add attributes in local_settings.py, so django can connect to an external server
for the mail delivery. To enable this, we only have to add these lines: