Skip to content

Commit 5418f85

Browse files
committed
Use console email backend if DEBUG=true
1 parent 0186490 commit 5418f85

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)