tickets_mail_settings.py 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. #LOGIN_REDIRECT_URL = "tickets:lists"
  2. #LOGIN_URL = "/accounts/login/"
  3. #LOGOUT_REDIRECT_URL = "/accounts/login/"
  4. # tickets-specific settings
  5. TICKETS_STAFF_ONLY = False
  6. TICKETS_DEFAULT_LIST_SLUG = 'tickets'
  7. TICKETS_DEFAULT_ASSIGNEE = None
  8. TICKETS_PUBLIC_SUBMIT_REDIRECT = '/'
  9. from tickets.mail.producers import imap_producer
  10. from tickets.mail.consumers import tracker_consumer
  11. from tickets.mail.delivery import smtp_backend, console_backend
  12. # email notifications configuration
  13. # each task list can get its own delivery method
  14. IS_SEND_EMAIL = False
  15. # TICKETS_MAIL_BACKENDS = {
  16. # # mail-queue is the name of the task list, not the worker name
  17. # "mail-queue": smtp_backend(
  18. # host="*********",
  19. # port=465,
  20. # use_ssl=True,
  21. # username="*********",
  22. # password="*********",
  23. # # used as the From field when sending notifications.
  24. # # a username might be prepended later on
  25. # from_address="*******",
  26. # # additionnal headers
  27. # headers={}
  28. # ),
  29. # }