Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
fix bug in heroku deploy with email settings
Browse files Browse the repository at this point in the history
  • Loading branch information
monty5811 committed May 18, 2016
1 parent ffa2c8f commit e8119e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,22 @@
"description": "County code (used in Elvanto import)",
"value": ""
},
"EMAIL_HOST": {
"DJANGO_EMAIL_HOST": {
"description": "Email host (required for user sign ups)",
"value": ""
},
"EMAIL_HOST_USER": {
"DJANGO_EMAIL_HOST_USER": {
"description": "Email host user",
"value": ""
},
"EMAIL_HOST_PASSWORD": {
"DJANGO_EMAIL_HOST_PASSWORD": {
"description": "Email host password",
"value": ""
},
"DJANGO_FROM_EMAIL": {
"description": "Email address from which to send emails",
"value": ""
},
"WHITELISTED_LOGIN_DOMAINS": {
"description": "Automatically approve verified emails from this domain",
"value": "",
Expand Down
2 changes: 1 addition & 1 deletion settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
EMAIL_HOST_USER = os.environ.get('DJANGO_EMAIL_HOST_USER', None)
EMAIL_HOST_PASSWORD = os.environ.get('DJANGO_EMAIL_HOST_PASSWORD', None)
EMAIL_FROM = os.environ.get('DJANGO_FROM_EMAIL', None)
EMAIL_PORT = int(os.environ.get('DJANGO_EMAIL_HOST_port', 587))
EMAIL_PORT = int(os.environ.get('DJANGO_EMAIL_HOST_PORT', 587))

# social login settings
ACCOUNT_ADAPTER = 'apostello.account.ApostelloAccountAdapter'
Expand Down

0 comments on commit e8119e9

Please sign in to comment.