Fixed emails

This commit is contained in:
Diego Calvo
2021-03-30 14:19:16 +02:00
parent 98b0099e45
commit 373e892463
5 changed files with 74 additions and 39 deletions

View File

@@ -52,6 +52,15 @@ SIMPLE_JWT = {
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
# For testing emails
# https://medium.com/@_christopher/how-to-send-emails-with-python-django-through-google-smtp-server-for-free-22ea6ea0fb8e
# EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
# EMAIL_HOST = 'smtp.gmail.com'
# EMAIL_USE_TLS = True
# EMAIL_PORT = 587
# EMAIL_HOST_USER = '' # your email account
# EMAIL_HOST_PASSWORD = '' #your password
# disable web interface for REST backend
# REST_FRAMEWORK['DEFAULT_RENDERER_CLASSES'] = ('rest_framework.renderers.JSONRenderer',)