blob: 1a6c17af8c328361baf478dedb289913ed9b1a89 [file] [log] [blame]
Jake Dahn9337b332011-09-15 21:46:20 -07001import os
2
3DEBUG = True
4TEMPLATE_DEBUG = DEBUG
5PROD = False
6USE_SSL = False
7
8LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))
Jake Dahna3492ed2011-09-15 22:42:43 -07009
10# FIXME: We need to change this to mysql, instead of sqlite.
Jake Dahn9337b332011-09-15 21:46:20 -070011DATABASES = {
12 'default': {
13 'ENGINE': 'django.db.backends.sqlite3',
14 'NAME': os.path.join(LOCAL_PATH, 'dashboard_openstack.sqlite3'),
Jesse Andrews9c7c9082011-11-23 10:10:53 -080015 'TEST_NAME': os.path.join(LOCAL_PATH, 'test.sqlite3'),
Jake Dahn9337b332011-09-15 21:46:20 -070016 },
17}
18
Jesse Andrews9c7c9082011-11-23 10:10:53 -080019# The default values for these two settings seem to cause issues with apache
Jake Dahn9337b332011-09-15 21:46:20 -070020CACHE_BACKEND = 'dummy://'
Jesse Andrews9c7c9082011-11-23 10:10:53 -080021SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db'
Jake Dahnad73da12011-09-15 22:28:53 -070022
Jake Dahn9337b332011-09-15 21:46:20 -070023# Send email to the console by default
24EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
25# Or send them to /dev/null
26#EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
27
28# django-mailer uses a different settings attribute
29MAILER_EMAIL_BACKEND = EMAIL_BACKEND
30
31# Configure these for your outgoing email host
32# EMAIL_HOST = 'smtp.my-company.com'
33# EMAIL_PORT = 25
34# EMAIL_HOST_USER = 'djangomail'
35# EMAIL_HOST_PASSWORD = 'top-secret!'
36
Jesse Andrews9c7c9082011-11-23 10:10:53 -080037HORIZON_CONFIG = {
38 'dashboards': ('nova', 'syspanel', 'settings',),
39 'default_dashboard': 'nova',
Gabriel Hurleyf1a11ad2012-02-29 01:36:53 -080040 'user_home': 'openstack_dashboard.views.user_home',
Jesse Andrews9c7c9082011-11-23 10:10:53 -080041}
42
jakedahn770cec72012-03-12 14:07:51 -070043# TODO(tres): Remove these once Keystone has an API to identify auth backend.
44OPENSTACK_KEYSTONE_BACKEND = {
45 'name': 'native',
46 'can_edit_user': True
47}
48
Jesse Andrews9c7c9082011-11-23 10:10:53 -080049OPENSTACK_HOST = "127.0.0.1"
50OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_HOST
51# FIXME: this is only needed until keystone fixes its GET /tenants call
52# so that it doesn't return everything for admins
53OPENSTACK_KEYSTONE_ADMIN_URL = "http://%s:35357/v2.0" % OPENSTACK_HOST
Jake Dahn9337b332011-09-15 21:46:20 -070054OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member"
55
Jesse Andrews9c7c9082011-11-23 10:10:53 -080056SWIFT_PAGINATE_LIMIT = 100
Jake Dahn9337b332011-09-15 21:46:20 -070057
Jesse Andrews9c7c9082011-11-23 10:10:53 -080058# If you have external monitoring links, eg:
59# EXTERNAL_MONITORING = [
60# ['Nagios','http://foo.com'],
61# ['Ganglia','http://bar.com'],
62# ]
Jake Dahn9337b332011-09-15 21:46:20 -070063
Jake Dahn9337b332011-09-15 21:46:20 -070064#LOGGING = {
65# 'version': 1,
Jesse Andrews9c7c9082011-11-23 10:10:53 -080066# # When set to True this will disable all logging except
67# # for loggers specified in this configuration dictionary. Note that
68# # if nothing is specified here and disable_existing_loggers is True,
69# # django.db.backends will still log unless it is disabled explicitly.
Jake Dahn9337b332011-09-15 21:46:20 -070070# 'disable_existing_loggers': False,
71# 'handlers': {
72# 'null': {
73# 'level': 'DEBUG',
74# 'class': 'django.utils.log.NullHandler',
75# },
76# 'console': {
Jesse Andrews9c7c9082011-11-23 10:10:53 -080077# # Set the level to "DEBUG" for verbose output logging.
78# 'level': 'INFO',
Jake Dahn9337b332011-09-15 21:46:20 -070079# 'class': 'logging.StreamHandler',
80# },
81# },
82# 'loggers': {
Jesse Andrews9c7c9082011-11-23 10:10:53 -080083# # Logging from django.db.backends is VERY verbose, send to null
84# # by default.
Jake Dahn9337b332011-09-15 21:46:20 -070085# 'django.db.backends': {
86# 'handlers': ['null'],
87# 'propagate': False,
88# },
Jesse Andrews9c7c9082011-11-23 10:10:53 -080089# 'horizon': {
90# 'handlers': ['console'],
Jake Dahn9337b332011-09-15 21:46:20 -070091# 'propagate': False,
92# },
Jesse Andrews9c7c9082011-11-23 10:10:53 -080093# 'novaclient': {
94# 'handlers': ['console'],
95# 'propagate': False,
96# },
97# 'keystoneclient': {
98# 'handlers': ['console'],
99# 'propagate': False,
100# },
101# 'nose.plugins.manager': {
102# 'handlers': ['console'],
103# 'propagate': False,
104# }
Jake Dahn9337b332011-09-15 21:46:20 -0700105# }
106#}