Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 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__)) |
Jake Dahn | a3492ed | 2011-09-15 22:42:43 -0700 | [diff] [blame] | 9 | |
| 10 | # FIXME: We need to change this to mysql, instead of sqlite. |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 11 | DATABASES = { |
| 12 | 'default': { |
| 13 | 'ENGINE': 'django.db.backends.sqlite3', |
| 14 | 'NAME': os.path.join(LOCAL_PATH, 'dashboard_openstack.sqlite3'), |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 15 | 'TEST_NAME': os.path.join(LOCAL_PATH, 'test.sqlite3'), |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 16 | }, |
| 17 | } |
| 18 | |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 19 | # The default values for these two settings seem to cause issues with apache |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 20 | CACHE_BACKEND = 'dummy://' |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 21 | SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db' |
Jake Dahn | ad73da1 | 2011-09-15 22:28:53 -0700 | [diff] [blame] | 22 | |
Sascha Peilicke | 3453630 | 2012-06-21 16:09:27 +0200 | [diff] [blame^] | 23 | # Set a secure and unique SECRET_KEY (the Django default is '') |
| 24 | from horizon.utils import secret_key |
| 25 | SECRET_KEY = secret_key.generate_or_read_from_file(os.path.join(LOCAL_PATH, '.secret_key_store')) |
| 26 | |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 27 | # Send email to the console by default |
| 28 | EMAIL_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 |
| 33 | MAILER_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 Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 41 | HORIZON_CONFIG = { |
| 42 | 'dashboards': ('nova', 'syspanel', 'settings',), |
| 43 | 'default_dashboard': 'nova', |
Gabriel Hurley | f1a11ad | 2012-02-29 01:36:53 -0800 | [diff] [blame] | 44 | 'user_home': 'openstack_dashboard.views.user_home', |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 45 | } |
| 46 | |
jakedahn | 770cec7 | 2012-03-12 14:07:51 -0700 | [diff] [blame] | 47 | # TODO(tres): Remove these once Keystone has an API to identify auth backend. |
| 48 | OPENSTACK_KEYSTONE_BACKEND = { |
| 49 | 'name': 'native', |
| 50 | 'can_edit_user': True |
| 51 | } |
| 52 | |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 53 | OPENSTACK_HOST = "127.0.0.1" |
| 54 | OPENSTACK_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 |
| 57 | OPENSTACK_KEYSTONE_ADMIN_URL = "http://%s:35357/v2.0" % OPENSTACK_HOST |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 58 | OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member" |
| 59 | |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 60 | SWIFT_PAGINATE_LIMIT = 100 |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 61 | |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 62 | # If you have external monitoring links, eg: |
| 63 | # EXTERNAL_MONITORING = [ |
| 64 | # ['Nagios','http://foo.com'], |
| 65 | # ['Ganglia','http://bar.com'], |
| 66 | # ] |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 67 | |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 68 | #LOGGING = { |
| 69 | # 'version': 1, |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 70 | # # 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 Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 74 | # 'disable_existing_loggers': False, |
| 75 | # 'handlers': { |
| 76 | # 'null': { |
| 77 | # 'level': 'DEBUG', |
| 78 | # 'class': 'django.utils.log.NullHandler', |
| 79 | # }, |
| 80 | # 'console': { |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 81 | # # Set the level to "DEBUG" for verbose output logging. |
| 82 | # 'level': 'INFO', |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 83 | # 'class': 'logging.StreamHandler', |
| 84 | # }, |
| 85 | # }, |
| 86 | # 'loggers': { |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 87 | # # Logging from django.db.backends is VERY verbose, send to null |
| 88 | # # by default. |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 89 | # 'django.db.backends': { |
| 90 | # 'handlers': ['null'], |
| 91 | # 'propagate': False, |
| 92 | # }, |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 93 | # 'horizon': { |
| 94 | # 'handlers': ['console'], |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 95 | # 'propagate': False, |
| 96 | # }, |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 97 | # '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 Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 109 | # } |
| 110 | #} |