Sfoglia il codice sorgente

Document dummy/live email settings to support contact form

Scot Hacker 8 anni fa
parent
commit
c22ab78ad7
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. 9 0
      readme.md

+ 9 - 0
readme.md

@@ -83,5 +83,14 @@ Log into the admin with the credentials ``admin / changeme``.
 To learn more about Heroku, read [Deploying Python and Django Apps on Heroku](https://devcenter.heroku.com/articles/deploying-python).
 
 
+### Sending email from the contact form
 
+The following setting in `base.py` and `heroku.py` ensures that live email is not sent by the demo contact form.
 
+`EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'`
+
+In production on your own site, you'll need to change this to:
+
+`EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'`
+
+and configure [SMTP settings](https://docs.djangoproject.com/en/1.10/topics/email/#smtp-backend) appropriate for your email provider.