Advertisement
Guest User

Untitled

a guest
May 16th, 2012
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1. import os
  2.  
  3. DEBUG = True
  4. TEMPLATE_DEBUG = DEBUG
  5. PROD = False
  6. USE_SSL = False
  7.  
  8. LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))
  9. #DATABASES = {
  10. # 'default': {
  11. # 'ENGINE': 'django.db.backends.sqlite3',
  12. # 'NAME': os.path.join(LOCAL_PATH, 'dashboard_openstack.sqlite3'),
  13. # },
  14. #}
  15.  
  16. DATABASES = {
  17. 'default': {
  18. 'ENGINE': 'django.db.backends.mysql',
  19. 'NAME': 'dash',
  20. 'USER': 'dash',
  21. 'PASSWORD': 'yourpassword',
  22. 'HOST': 'localhost',
  23. 'default-character-set': 'utf8'
  24. },
  25. }
  26.  
  27. CACHE_BACKEND = 'dummy://'
  28.  
  29. SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db'
  30.  
  31. # Send email to the console by default
  32. EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
  33. # Or send them to /dev/null
  34. #EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
  35.  
  36. # django-mailer uses a different settings attribute
  37. MAILER_EMAIL_BACKEND = EMAIL_BACKEND
  38.  
  39. # Configure these for your outgoing email host
  40. # EMAIL_HOST = 'smtp.my-company.com'
  41. # EMAIL_PORT = 25
  42. # EMAIL_HOST_USER = 'djangomail'
  43. # EMAIL_HOST_PASSWORD = 'top-secret!'
  44.  
  45.  
  46. OPENSTACK_KEYSTONE_URL = "http://localhost:5000/v2.0/"
  47. # FIXME: this is only needed until keystone fixes its GET /tenants call
  48. # so that it doesn't return everything for admins
  49. OPENSTACK_KEYSTONE_ADMIN_URL = "http://localhost:35357/v2.0"
  50. OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member"
  51.  
  52. # NOTE(tres): Available services should come from the service
  53. # catalog in Keystone.
  54. SWIFT_ENABLED = False
  55.  
  56. # Configure quantum connection details for networking
  57. QUANTUM_ENABLED = False
  58. QUANTUM_URL = '127.0.0.1'
  59. QUANTUM_PORT = '9696'
  60. QUANTUM_TENANT = '1234'
  61. QUANTUM_CLIENT_VERSION='0.1'
  62.  
  63. # If you have external monitoring links
  64. EXTERNAL_MONITORING = [
  65. ['Nagios','http://foo.com'],
  66. ['Ganglia','http://bar.com'],
  67. ]
  68.  
  69. # If you do not have external monitoring links
  70. # EXTERNAL_MONITORING = []
  71.  
  72. # Uncomment the following segment to silence most logging
  73. # django.db and boto DEBUG logging is extremely verbose.
  74. #LOGGING = {
  75. # 'version': 1,
  76. # # set to True will disable all logging except that specified, unless
  77. # # nothing is specified except that django.db.backends will still log,
  78. # # even when set to True, so disable explicitly
  79. # 'disable_existing_loggers': False,
  80. # 'handlers': {
  81. # 'null': {
  82. # 'level': 'DEBUG',
  83. # 'class': 'django.utils.log.NullHandler',
  84. # },
  85. # 'console': {
  86. # 'level': 'DEBUG',
  87. # 'class': 'logging.StreamHandler',
  88. # },
  89. # },
  90. # 'loggers': {
  91. # # Comment or Uncomment these to turn on/off logging output
  92. # 'django.db.backends': {
  93. # 'handlers': ['null'],
  94. # 'propagate': False,
  95. # },
  96. # 'django_openstack': {
  97. # 'handlers': ['null'],
  98. # 'propagate': False,
  99. # },
  100. # }
  101. #}
  102.  
  103. # How much ram on each compute host?
  104. COMPUTE_HOST_RAM_GB = 16
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement