Skip to content

Commit f12c3ec

Browse files
Merge pull request #228 from jarifibrahim/local-email-backend
Use console email backend if DEBUG=true
2 parents 0186490 + 5418f85 commit f12c3ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: oshc/oshc/settings.py

+3
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@
159159

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

162+
if DEBUG:
163+
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
164+
162165
EMAIL_HOST = 'smtp.gmail.com'
163166
EMAIL_HOST_USER = 'email'
164167
EMAIL_HOST_PASSWORD = 'password'

0 commit comments

Comments
 (0)