From 1ee099919da34ad8b891fdd965f7645d5489183c Mon Sep 17 00:00:00 2001 From: "jp.av.dev" Date: Sun, 15 Nov 2020 02:12:59 -0300 Subject: [PATCH] set : bd + idioma + mail --- TiendaOnline/TiendaOnline/settings.py | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/TiendaOnline/TiendaOnline/settings.py b/TiendaOnline/TiendaOnline/settings.py index 1b9fe27..94e24a4 100644 --- a/TiendaOnline/TiendaOnline/settings.py +++ b/TiendaOnline/TiendaOnline/settings.py @@ -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' \ No newline at end of file