set : bd + idioma + mail

This commit is contained in:
jp.av.dev 2020-11-15 02:12:59 -03:00
parent 44ba364636
commit 1ee099919d

View File

@ -63,9 +63,17 @@ WSGI_APPLICATION = 'TiendaOnline.wsgi.application'
# https://docs.djangoproject.com/en/3.1/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
# 'default': {
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': BASE_DIR / 'db.sqlite3',
# }
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'articulosclientes',
'USER': 'UserDB',
'PASSWORD': 'PassDB',
'HOST': '127.0.0.1',
'DATABASE_PORT': '5432',
}
}
@ -92,7 +100,7 @@ AUTH_PASSWORD_VALIDATORS = [
# Internationalization
# https://docs.djangoproject.com/en/3.1/topics/i18n/
LANGUAGE_CODE = 'en-us'
LANGUAGE_CODE = 'es-CL'
TIME_ZONE = 'America/Santiago'
@ -107,3 +115,9 @@ USE_TZ = True
# https://docs.djangoproject.com/en/3.1/howto/static-files/
STATIC_URL = '/static/'
EMAIL_BACKEND = 'django.core.imail.backends.smtp.EmailBackend'
EMAIL_USE_TLS = True
EMAIL_PORT = 587
EMAIL_HOST_USER = 'ejemplo@gmail.com'
EMAIL_HOST_PASSWORD = 'clave-ejemplo'