mirror of
https://github.com/nikdoof/vapemap.git
synced 2025-12-14 06:42:17 +00:00
Use SendGrid for production email.
This commit is contained in:
@@ -178,4 +178,10 @@ if not DEBUG:
|
||||
AWS_STORAGE_BUCKET_NAME = os.environ.get('AWS_STORAGE_BUCKET_NAME', 'vapemap-static')
|
||||
STATICFILES_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
|
||||
S3_URL = 'http://%s.s3.amazonaws.com/' % AWS_STORAGE_BUCKET_NAME
|
||||
STATIC_URL = S3_URL
|
||||
STATIC_URL = S3_URL
|
||||
|
||||
EMAIL_HOST = 'smtp.sendgrid.net'
|
||||
EMAIL_HOST_USER = os.environ['SENDGRID_USERNAME']
|
||||
EMAIL_HOST_PASSWORD = os.environ['SENDGRID_PASSWORD']
|
||||
EMAIL_PORT = 587
|
||||
EMAIL_USE_TLS = True
|
||||
Reference in New Issue
Block a user