blob: d18fd1a54a27fa153c273b15a24baba1b623fbd4 [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
Sascha Peilicke34536302012-06-21 16:09:27 +020023# Set a secure and unique SECRET_KEY (the Django default is '')
24from horizon.utils import secret_key
25SECRET_KEY = secret_key.generate_or_read_from_file(os.path.join(LOCAL_PATH, '.secret_key_store'))
26
Jake Dahn9337b332011-09-15 21:46:20 -070027# Send email to the console by default
28EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
29# Or send them to /dev/null
30#EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
31
32# django-mailer uses a different settings attribute
33MAILER_EMAIL_BACKEND = EMAIL_BACKEND
34
35# Configure these for your outgoing email host
36# EMAIL_HOST = 'smtp.my-company.com'
37# EMAIL_PORT = 25
38# EMAIL_HOST_USER = 'djangomail'
39# EMAIL_HOST_PASSWORD = 'top-secret!'
40
Jesse Andrews9c7c9082011-11-23 10:10:53 -080041HORIZON_CONFIG = {
42 'dashboards': ('nova', 'syspanel', 'settings',),
43 'default_dashboard': 'nova',
Jesse Andrews9c7c9082011-11-23 10:10:53 -080044}
45
jakedahn770cec72012-03-12 14:07:51 -070046# TODO(tres): Remove these once Keystone has an API to identify auth backend.
47OPENSTACK_KEYSTONE_BACKEND = {
48 'name': 'native',
49 'can_edit_user': True
50}
51
Jesse Andrews9c7c9082011-11-23 10:10:53 -080052OPENSTACK_HOST = "127.0.0.1"
53OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_HOST
54# FIXME: this is only needed until keystone fixes its GET /tenants call
55# so that it doesn't return everything for admins
56OPENSTACK_KEYSTONE_ADMIN_URL = "http://%s:35357/v2.0" % OPENSTACK_HOST
Jake Dahn9337b332011-09-15 21:46:20 -070057OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member"
58
Jesse Andrews9c7c9082011-11-23 10:10:53 -080059SWIFT_PAGINATE_LIMIT = 100
Jake Dahn9337b332011-09-15 21:46:20 -070060
Jesse Andrews9c7c9082011-11-23 10:10:53 -080061# If you have external monitoring links, eg:
62# EXTERNAL_MONITORING = [
63# ['Nagios','http://foo.com'],
64# ['Ganglia','http://bar.com'],
65# ]
Jake Dahn9337b332011-09-15 21:46:20 -070066
Jake Dahn9337b332011-09-15 21:46:20 -070067#LOGGING = {
68# 'version': 1,
Jesse Andrews9c7c9082011-11-23 10:10:53 -080069# # When set to True this will disable all logging except
70# # for loggers specified in this configuration dictionary. Note that
71# # if nothing is specified here and disable_existing_loggers is True,
72# # django.db.backends will still log unless it is disabled explicitly.
Jake Dahn9337b332011-09-15 21:46:20 -070073# 'disable_existing_loggers': False,
74# 'handlers': {
75# 'null': {
76# 'level': 'DEBUG',
77# 'class': 'django.utils.log.NullHandler',
78# },
79# 'console': {
Jesse Andrews9c7c9082011-11-23 10:10:53 -080080# # Set the level to "DEBUG" for verbose output logging.
81# 'level': 'INFO',
Jake Dahn9337b332011-09-15 21:46:20 -070082# 'class': 'logging.StreamHandler',
83# },
84# },
85# 'loggers': {
Jesse Andrews9c7c9082011-11-23 10:10:53 -080086# # Logging from django.db.backends is VERY verbose, send to null
87# # by default.
Jake Dahn9337b332011-09-15 21:46:20 -070088# 'django.db.backends': {
89# 'handlers': ['null'],
90# 'propagate': False,
91# },
Jesse Andrews9c7c9082011-11-23 10:10:53 -080092# 'horizon': {
93# 'handlers': ['console'],
Jake Dahn9337b332011-09-15 21:46:20 -070094# 'propagate': False,
95# },
Jesse Andrews9c7c9082011-11-23 10:10:53 -080096# 'novaclient': {
97# 'handlers': ['console'],
98# 'propagate': False,
99# },
100# 'keystoneclient': {
101# 'handlers': ['console'],
102# 'propagate': False,
103# },
104# 'nose.plugins.manager': {
105# 'handlers': ['console'],
106# 'propagate': False,
107# }
Jake Dahn9337b332011-09-15 21:46:20 -0700108# }
109#}