set : bd + idioma + mail
This commit is contained in:
parent
44ba364636
commit
1ee099919d
@ -63,9 +63,17 @@ WSGI_APPLICATION = 'TiendaOnline.wsgi.application'
|
|||||||
# https://docs.djangoproject.com/en/3.1/ref/settings/#databases
|
# https://docs.djangoproject.com/en/3.1/ref/settings/#databases
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
|
# 'default': {
|
||||||
|
# 'ENGINE': 'django.db.backends.sqlite3',
|
||||||
|
# 'NAME': BASE_DIR / 'db.sqlite3',
|
||||||
|
# }
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.sqlite3',
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||||
'NAME': BASE_DIR / 'db.sqlite3',
|
'NAME': 'articulosclientes',
|
||||||
|
'USER': 'UserDB',
|
||||||
|
'PASSWORD': 'PassDB',
|
||||||
|
'HOST': '127.0.0.1',
|
||||||
|
'DATABASE_PORT': '5432',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -92,7 +100,7 @@ AUTH_PASSWORD_VALIDATORS = [
|
|||||||
# Internationalization
|
# Internationalization
|
||||||
# https://docs.djangoproject.com/en/3.1/topics/i18n/
|
# https://docs.djangoproject.com/en/3.1/topics/i18n/
|
||||||
|
|
||||||
LANGUAGE_CODE = 'en-us'
|
LANGUAGE_CODE = 'es-CL'
|
||||||
|
|
||||||
TIME_ZONE = 'America/Santiago'
|
TIME_ZONE = 'America/Santiago'
|
||||||
|
|
||||||
@ -107,3 +115,9 @@ USE_TZ = True
|
|||||||
# https://docs.djangoproject.com/en/3.1/howto/static-files/
|
# https://docs.djangoproject.com/en/3.1/howto/static-files/
|
||||||
|
|
||||||
STATIC_URL = '/static/'
|
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'
|
Loading…
Reference in New Issue
Block a user