Guest User

Untitled

a guest
Jun 27th, 2018
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. # -*- coding: utf8 -*-
  2. EMAIL_USE_TLS = True
  3. DEBUG = True
  4. TEMPLATE_DEBUG = DEBUG
  5.  
  6. #Configuración de envío de correo por CANTV
  7. #EMAIL_HOST='mail.cantv.net'
  8. #EMAIL_HOST_USER=''
  9. #EMAIL_HOST_PASSWORD=''
  10.  
  11. #Configuración de envío de correo por Gmail
  12. EMAIL_HOST='smtp.gmail.com'
  13. REMITENTE='Axel Díaz <diaz.axelio@gmail.com>' #Correo remitente por defecto que usará la activación de cuentas
  14. EMAIL_HOST_USER='' #Correo desde el cual se va a enviar el correo <correo@gmail.com>
  15. EMAIL_HOST_PASSWORD='' #Contraseña de la cuenta de correo
  16. EMAIL_PORT=587
  17. # Control para que cuando se use un sitio con conexión segura
  18. EMAIL_USE_TLS = True
  19.  
  20. DATABASES = {
  21. 'default': {
  22. 'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
  23. # 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
  24. 'NAME': 'pyscde', # Or path to database file if using sqlite3.
  25. 'USER': 'pyscde', # Not used with sqlite3.
  26. 'PASSWORD': 'pyscde', # Not used with sqlite3.
  27. 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
  28. 'PORT': '', # Set to empty string for default. Not used with sqlite3.
  29. }
  30. }
  31. CACHES={
  32. 'default':{
  33. 'BACKEND':'django.core.cache.backends.filebased.FileBasedCache',
  34. 'LOCATION':'/tmp/'
  35. # 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
  36. # 'LOCATION': 'unix:/tmp/memcached.sock',
  37. }
  38. }
  39. BROKER_HOST = "localhost"
  40. BROKER_PORT = 5672
  41. BROKER_USER = "pyscde"
  42. BROKER_PASSWORD = "celery"
  43. BROKER_VHOST = "pyscde"
  44. CELERY_EMAIL_TASK_CONFIG = {
  45. 'queue' : 'email',
  46. 'rate_limit' : '50/m',
  47. }
Add Comment
Please, Sign In to add comment