1. import os
  2. from django.utils.translation import ugettext_lazy as _
  3. DEBUG = False
  4. TEMPLATE_DEBUG = DEBUG
  5. PROD = False
  6. USE_SSL = False
  7. ENABLE_JUJU_PANEL = True
  8. SECRET_KEY = '**************'
  9. DATABASES = {
  10. 'default': {
  11. 'ENGINE': 'django.db.backends.mysql',
  12. 'NAME': 'dash',
  13. 'USER': 'dash',
  14. 'PASSWORD': '****',
  15. 'HOST': '10.176.4.2',
  16. 'default-character-set': 'utf8'
  17. }
  18. }
  19. LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))
  20. CACHE_BACKEND = 'memcached://127.0.0.1:11211/'
  21. EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
  22. OPENSTACK_HOST = "10.176.4.2"
  23. OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_HOST
  24. OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member"
  25. OPENSTACK_KEYSTONE_BACKEND = {
  26. 'name': 'native',
  27. 'can_edit_user': True
  28. }
  29. API_RESULT_LIMIT = 1000
  30. LOGGING = {
  31. 'version': 1,
  32. # When set to True this will disable all logging except
  33. # for loggers specified in this configuration dictionary. Note that
  34. # if nothing is specified here and disable_existing_loggers is True,
  35. # django.db.backends will still log unless it is disabled explicitly.
  36. 'disable_existing_loggers': False,
  37. 'handlers': {
  38. 'null': {
  39. 'level': 'DEBUG',
  40. 'class': 'django.utils.log.NullHandler',
  41. },
  42. 'console': {
  43. # Set the level to "DEBUG" for verbose output logging.
  44. 'level': 'INFO',
  45. 'class': 'logging.StreamHandler',
  46. },
  47. },
  48. 'loggers': {
  49. # Logging from django.db.backends is VERY verbose, send to null
  50. # by default.
  51. 'django.db.backends': {
  52. 'handlers': ['null'],
  53. 'propagate': False,
  54. },
  55. 'horizon': {
  56. 'handlers': ['console'],
  57. 'propagate': False,
  58. },
  59. 'novaclient': {
  60. 'handlers': ['console'],
  61. 'propagate': False,
  62. },
  63. 'keystoneclient': {
  64. 'handlers': ['console'],
  65. 'propagate': False,
  66. },
  67. 'nose.plugins.manager': {
  68. 'handlers': ['console'],
  69. 'propagate': False,
  70. }
  71. }
  72. }