Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf8 -*-
- EMAIL_USE_TLS = True
- DEBUG = True
- TEMPLATE_DEBUG = DEBUG
- #Configuración de envío de correo por CANTV
- #EMAIL_HOST='mail.cantv.net'
- #EMAIL_HOST_USER=''
- #EMAIL_HOST_PASSWORD=''
- #Configuración de envío de correo por Gmail
- EMAIL_HOST='smtp.gmail.com'
- REMITENTE='Axel Díaz <diaz.axelio@gmail.com>' #Correo remitente por defecto que usará la activación de cuentas
- EMAIL_HOST_USER='' #Correo desde el cual se va a enviar el correo <correo@gmail.com>
- EMAIL_HOST_PASSWORD='' #Contraseña de la cuenta de correo
- EMAIL_PORT=587
- # Control para que cuando se use un sitio con conexión segura
- EMAIL_USE_TLS = True
- DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
- # 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
- 'NAME': 'pyscde', # Or path to database file if using sqlite3.
- 'USER': 'pyscde', # Not used with sqlite3.
- 'PASSWORD': 'pyscde', # Not used with sqlite3.
- 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
- 'PORT': '', # Set to empty string for default. Not used with sqlite3.
- }
- }
- CACHES={
- 'default':{
- 'BACKEND':'django.core.cache.backends.filebased.FileBasedCache',
- 'LOCATION':'/tmp/'
- # 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
- # 'LOCATION': 'unix:/tmp/memcached.sock',
- }
- }
- BROKER_HOST = "localhost"
- BROKER_PORT = 5672
- BROKER_USER = "pyscde"
- BROKER_PASSWORD = "celery"
- BROKER_VHOST = "pyscde"
- CELERY_EMAIL_TASK_CONFIG = {
- 'queue' : 'email',
- 'rate_limit' : '50/m',
- }
Add Comment
Please, Sign In to add comment