Skip to content

Commit 3f4cd11

Browse files
committed
Use env variables to set SMTP settings
1 parent 3741eed commit 3f4cd11

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: oshc/oshc/settings.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,12 @@
159159

160160
STATICFILES_DIRS = (os.path.join(BASE_DIR, 'main/'), )
161161

162-
EMAIL_HOST = 'smtp.gmail.com'
163-
EMAIL_HOST_USER = 'email'
164-
EMAIL_HOST_PASSWORD = 'password'
165-
EMAIL_PORT = 587
162+
EMAIL_HOST = os.getenv('EMAIL_HOST', '')
163+
EMAIL_HOST_USER = os.getenv('EMAIL_ID', '')
164+
EMAIL_HOST_PASSWORD = os.getenv('EMAIL_PASSWORD', '')
165+
EMAIL_PORT = os.getenv('EMAIL_PORT', '')
166166
EMAIL_USE_TLS = True
167+
167168
LOGIN_REDIRECT_URL = "/"
168169

169170
CRISPY_TEMPLATE_PACK = 'bootstrap3'

0 commit comments

Comments
 (0)