blob: 487c06eaa9080eaad670b71249338c9d14fd672f [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',
Gabriel Hurleyf1a11ad2012-02-29 01:36:53 -080044 'user_home': 'openstack_dashboard.views.user_home',
Jesse Andrews9c7c9082011-11-23 10:10:53 -080045}
46
jakedahn770cec72012-03-12 14:07:51 -070047# TODO(tres): Remove these once Keystone has an API to identify auth backend.
48OPENSTACK_KEYSTONE_BACKEND = {
49 'name': 'native',
50 'can_edit_user': True
51}
52
Jesse Andrews9c7c9082011-11-23 10:10:53 -080053OPENSTACK_HOST = "127.0.0.1"
54OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_HOST
55# FIXME: this is only needed until keystone fixes its GET /tenants call
56# so that it doesn't return everything for admins
57OPENSTACK_KEYSTONE_ADMIN_URL = "http://%s:35357/v2.0" % OPENSTACK_HOST
Jake Dahn9337b332011-09-15 21:46:20 -070058OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member"
59
Jesse Andrews9c7c9082011-11-23 10:10:53 -080060SWIFT_PAGINATE_LIMIT = 100
Jake Dahn9337b332011-09-15 21:46:20 -070061
Jesse Andrews9c7c9082011-11-23 10:10:53 -080062# If you have external monitoring links, eg:
63# EXTERNAL_MONITORING = [
64# ['Nagios','http://foo.com'],
65# ['Ganglia','http://bar.com'],
66# ]
Jake Dahn9337b332011-09-15 21:46:20 -070067
Jake Dahn9337b332011-09-15 21:46:20 -070068#LOGGING = {
69# 'version': 1,
Jesse Andrews9c7c9082011-11-23 10:10:53 -080070# # When set to True this will disable all logging except
71# # for loggers specified in this configuration dictionary. Note that
72# # if nothing is specified here and disable_existing_loggers is True,
73# # django.db.backends will still log unless it is disabled explicitly.
Jake Dahn9337b332011-09-15 21:46:20 -070074# 'disable_existing_loggers': False,
75# 'handlers': {
76# 'null': {
77# 'level': 'DEBUG',
78# 'class': 'django.utils.log.NullHandler',
79# },
80# 'console': {
Jesse Andrews9c7c9082011-11-23 10:10:53 -080081# # Set the level to "DEBUG" for verbose output logging.
82# 'level': 'INFO',
Jake Dahn9337b332011-09-15 21:46:20 -070083# 'class': 'logging.StreamHandler',
84# },
85# },
86# 'loggers': {
Jesse Andrews9c7c9082011-11-23 10:10:53 -080087# # Logging from django.db.backends is VERY verbose, send to null
88# # by default.
Jake Dahn9337b332011-09-15 21:46:20 -070089# 'django.db.backends': {
90# 'handlers': ['null'],
91# 'propagate': False,
92# },
Jesse Andrews9c7c9082011-11-23 10:10:53 -080093# 'horizon': {
94# 'handlers': ['console'],
Jake Dahn9337b332011-09-15 21:46:20 -070095# 'propagate': False,
96# },
Jesse Andrews9c7c9082011-11-23 10:10:53 -080097# 'novaclient': {
98# 'handlers': ['console'],
99# 'propagate': False,
100# },
101# 'keystoneclient': {
102# 'handlers': ['console'],
103# 'propagate': False,
104# },
105# 'nose.plugins.manager': {
106# 'handlers': ['console'],
107# 'propagate': False,
108# }
Jake Dahn9337b332011-09-15 21:46:20 -0700109# }
110#}