File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 296
296
'endpoint' : env ('AZURE_APPINSIGHTS_ENDPOINT' , None ),
297
297
}
298
298
299
- ## necessary for email verification setup
300
- # EMAIL_USE_TLS = True
301
- # EMAIL_HOST = 'smtp.gmail.com'
302
- # EMAIL_HOST_USER = '[email protected] '
303
- # EMAIL_HOST_PASSWORD = 'gfds6jk#4ljIr%G8%'
304
- # EMAIL_PORT = 587
305
- #
306
- ## During development only
307
- # EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
299
+ # necessary for email verification of new accounts
300
+ EMAIL_USE_TLS = env . bool ( 'EMAIL_USE_TLS' , False )
301
+ EMAIL_HOST = env ( 'EMAIL_HOST' , None )
302
+ EMAIL_HOST_USER = env ( 'EMAIL_HOST_USER' , None )
303
+ EMAIL_HOST_PASSWORD = env ( 'EMAIL_HOST_PASSWORD' , None )
304
+ EMAIL_PORT = env . int ( 'EMAIL_PORT' , 587 )
305
+
306
+ if not EMAIL_HOST :
307
+ EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
You can’t perform that action at this time.
0 commit comments