Email settings
authorCharles Connell <charles@connells.org>
Mon, 13 Jan 2014 23:59:53 +0000 (18:59 -0500)
committerCharles Connell <charles@connells.org>
Mon, 13 Jan 2014 23:59:53 +0000 (18:59 -0500)
karmaworld/secret/email.py.example [new file with mode: 0644]
karmaworld/settings/common.py
karmaworld/settings/prod.py

diff --git a/karmaworld/secret/email.py.example b/karmaworld/secret/email.py.example
new file mode 100644 (file)
index 0000000..c0f726f
--- /dev/null
@@ -0,0 +1,4 @@
+
+SMTP_USERNAME = ''
+SMTP_PASSWORD = ''
+
index 4b20c2f6d2c5e01843058872adce6680661597d2..580ffdba7b6e6051c194b8a0a6c2c8e7832afc6a 100644 (file)
@@ -23,7 +23,7 @@ DJANGO_ROOT = dirname(dirname(abspath(__file__)))
 SITE_ROOT = dirname(DJANGO_ROOT)
 
 # Site name:
-SITE_NAME = basename(DJANGO_ROOT)
+SITE_NAME = 'KarmaNotes'
 
 # Add our project to our pythonpath, this way we don't need to type our project
 # name in our dotted import paths:
index b20e37e524afc09dc1da71722100ef0353f6f176..d4560ee4152599ee907f17d36d62eda0b59d74d6 100644 (file)
@@ -22,18 +22,21 @@ from karmaworld.secret.db_settings import PROD_DB_NAME
 from karmaworld.secret.db_settings import PROD_DB_USERNAME
 from karmaworld.secret.db_settings import PROD_DB_PASSWORD
 
+from karmaworld.secret.email import SMTP_USERNAME
+from karmaworld.secret.email import SMTP_PASSWORD
+
 ########## EMAIL CONFIGURATION
 # See: https://docs.djangoproject.com/en/dev/ref/settings/#email-backend
 EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
 
 # See: https://docs.djangoproject.com/en/dev/ref/settings/#email-host
-EMAIL_HOST = environ.get('EMAIL_HOST', 'smtp.gmail.com')
+EMAIL_HOST = environ.get('EMAIL_HOST', 'email-smtp.us-east-1.amazonaws.com')
 
 # See: https://docs.djangoproject.com/en/dev/ref/settings/#email-host-password
-EMAIL_HOST_PASSWORD = environ.get('EMAIL_HOST_PASSWORD', '')
+EMAIL_HOST_PASSWORD = environ.get('EMAIL_HOST_PASSWORD', SMTP_PASSWORD)
 
 # See: https://docs.djangoproject.com/en/dev/ref/settings/#email-host-user
-EMAIL_HOST_USER = environ.get('EMAIL_HOST_USER', 'your_email@example.com')
+EMAIL_HOST_USER = environ.get('EMAIL_HOST_USER', SMTP_USERNAME)
 
 # See: https://docs.djangoproject.com/en/dev/ref/settings/#email-port
 EMAIL_PORT = environ.get('EMAIL_PORT', 587)