local.py 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. from .common import *
  2. MEDIA_URL = "http://example.com/media/"
  3. STATIC_URL = "http://example.com/static/"
  4. ADMIN_MEDIA_PREFIX = "http://example.com/static/admin/"
  5. SITES["front"]["scheme"] = "http"
  6. SITES["front"]["domain"] = "example.com"
  7. SECRET_KEY = "theveryultratopsecretkey"
  8. DEBUG = False
  9. TEMPLATE_DEBUG = False
  10. PUBLIC_REGISTER_ENABLED = True
  11. DEFAULT_FROM_EMAIL = "no-reply@example.com"
  12. SERVER_EMAIL = DEFAULT_FROM_EMAIL
  13. # Uncomment and populate with proper connection parameters
  14. # for enable email sending. EMAIL_HOST_USER should end by @domain.tld
  15. EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
  16. EMAIL_USE_TLS = False
  17. EMAIL_HOST = "localhost"
  18. EMAIL_PORT = 25
  19. EMAIL_HOST_USER = ""
  20. # EMAIL_HOST_PASSWORD = ""
  21. # Database config
  22. DATABASES = {
  23. "default": {
  24. "ENGINE": "transaction_hooks.backends.postgresql_psycopg2",
  25. "NAME": "taiga",
  26. "USER": "taiga",
  27. "PASSWORD": "changeme",
  28. "HOST": "",
  29. "PORT": "",
  30. }
  31. }
  32. INSTALLED_APPS += ["taiga_contrib_ldap_auth"]
  33. LDAP_SERVER = "ldap://ldap.example.com"
  34. LDAP_PORT = 389
  35. # Full DN of the service account use to connect to LDAP server and search for login user's account entry
  36. # If LDAP_BIND_DN is not specified, or is blank, then an anonymous bind is attempated
  37. LDAP_BIND_DN = ""
  38. LDAP_BIND_PASSWORD = ""
  39. # Starting point within LDAP structure to search for login user
  40. LDAP_SEARCH_BASE = "OU=DevTeam,DC=example,DC=net"
  41. # LDAP property used for searching, ie. login username needs to match value in sAMAccountName property in LDAP
  42. LDAP_SEARCH_PROPERTY = "sAMAccountName"
  43. LDAP_SEARCH_SUFFIX = None # '@example.com'
  44. # Names of LDAP properties on user account to get email and full name
  45. LDAP_EMAIL_PROPERTY = "mail"
  46. LDAP_FULL_NAME_PROPERTY = "displayname"