email config

This commit is contained in:
Francisco Rodriguez
2022-11-27 12:15:41 -07:00
parent 76465e348b
commit 77e3315f8e

View File

@@ -12,7 +12,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = 'django-insecure-5*mm&uf5zq@t6nrs_5z8-_qtyapm^3&yz^wqqkc_a!v(!ulj-^'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = False
ALLOWED_HOSTS = ['*']
@@ -86,10 +86,20 @@ ACCOUNT_FORMS = {
'reset_password_from_key': 'allauth.account.forms.ResetPasswordKeyForm',
'disconnect': 'allauth.socialaccount.forms.DisconnectForm',
}
#LOGIN_URL = "/accounts/login/"
LOGIN_REDIRECT_URL = '/'
ACCOUNT_LOGOUT_REDIRECT_URL = '/accounts/login/'
ACCOUNT_SIGNUP_REDIRECT_URL =LOGIN_REDIRECT_URL
ACCOUNT_LOGOUT_ON_PASSWORD_CHANGE = True
EMAIL_TIMEOUT = 5
#EMAIL_USE_TLS = True
EMAIL_HOST = 'secure.emailsrvr.com'
EMAIL_PORT = 465
EMAIL_HOST_USER = DEFAULT_FROM_EMAIL = 'noreply@aduanasoft.com.mx'
EMAIL_HOST_PASSWORD = 'N036p7y!'
EMAIL_SUBJECT_PREFIX = 'AS Timbres'
EMAIL_USE_SSL=True
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
# Database
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases