~zulcss/horizon/horizon-g3-precise

« back to all changes in this revision

Viewing changes to .pc/add_juju_settings_panel.patch/openstack_dashboard/local/local_settings.py.example

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Adam Gandelman, Chuck Short
  • Date: 2012-04-12 12:42:04 UTC
  • Revision ID: package-import@ubuntu.com-20120412124204-13k1rs5ijcf7eti3
Tags: 2012.1-0ubuntu3
[ Adam Gandelman ]
* debian/patches/add_juju_settings_panel.patch, debian/rules,
  debian/juju.png: Add an Ubuntu-specific panel to easily generate
  Juju environments.yaml

[ Chuck Short ]
* debian/patches/turn-off-debug.patch: Turn off debugging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import os
 
2
 
 
3
from django.utils.translation import ugettext_lazy as _
 
4
 
 
5
DEBUG = False
 
6
TEMPLATE_DEBUG = DEBUG
 
7
PROD = False
 
8
USE_SSL = False
 
9
 
 
10
# Note: You should change this value
 
11
SECRET_KEY = 'elj1IWiLoWHgcyYxFVLj7cM5rGOOxWl0'
 
12
 
 
13
# Specify a regular expression to validate user passwords.
 
14
# HORIZON_CONFIG = {
 
15
#     "password_validator": {
 
16
#         "regex": '.*',
 
17
#         "help_text": _("Your password does not meet the requirements.")
 
18
#     }
 
19
# }
 
20
 
 
21
LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))
 
22
 
 
23
# We recommend you use memcached for development; otherwise after every reload
 
24
# of the django development server, you will have to login again. To use
 
25
# memcached set CACHE_BACKED to something like 'memcached://127.0.0.1:11211/'
 
26
CACHE_BACKEND = 'locmem://'
 
27
 
 
28
# Send email to the console by default
 
29
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
 
30
# Or send them to /dev/null
 
31
#EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
 
32
 
 
33
# Configure these for your outgoing email host
 
34
# EMAIL_HOST = 'smtp.my-company.com'
 
35
# EMAIL_PORT = 25
 
36
# EMAIL_HOST_USER = 'djangomail'
 
37
# EMAIL_HOST_PASSWORD = 'top-secret!'
 
38
 
 
39
# For multiple regions uncomment this configuration, and add (endpoint, title).
 
40
# AVAILABLE_REGIONS = [
 
41
#     ('http://cluster1.example.com:5000/v2.0', 'cluster1'),
 
42
#     ('http://cluster2.example.com:5000/v2.0', 'cluster2'),
 
43
# ]
 
44
 
 
45
OPENSTACK_HOST = "127.0.0.1"
 
46
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_HOST
 
47
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member"
 
48
 
 
49
# The OPENSTACK_KEYSTONE_BACKEND settings can be used to identify the
 
50
# capabilities of the auth backend for Keystone.
 
51
# If Keystone has been configured to use LDAP as the auth backend then set
 
52
# can_edit_user to False and name to 'ldap'.
 
53
#
 
54
# TODO(tres): Remove these once Keystone has an API to identify auth backend.
 
55
OPENSTACK_KEYSTONE_BACKEND = {
 
56
    'name': 'native',
 
57
    'can_edit_user': True
 
58
}
 
59
 
 
60
# OPENSTACK_ENDPOINT_TYPE specifies the endpoint type to use for the endpoints
 
61
# in the Keystone service catalog. Use this setting when Horizon is running
 
62
# external to the OpenStack environment. The default is 'internalURL'.
 
63
#OPENSTACK_ENDPOINT_TYPE = "publicURL"
 
64
 
 
65
# The number of Swift containers and objects to display on a single page before
 
66
# providing a paging element (a "more" link) to paginate results.
 
67
API_RESULT_LIMIT = 1000
 
68
 
 
69
# If you have external monitoring links, eg:
 
70
# EXTERNAL_MONITORING = [
 
71
#     ['Nagios','http://foo.com'],
 
72
#     ['Ganglia','http://bar.com'],
 
73
# ]
 
74
 
 
75
LOGGING = {
 
76
        'version': 1,
 
77
        # When set to True this will disable all logging except
 
78
        # for loggers specified in this configuration dictionary. Note that
 
79
        # if nothing is specified here and disable_existing_loggers is True,
 
80
        # django.db.backends will still log unless it is disabled explicitly.
 
81
        'disable_existing_loggers': False,
 
82
        'handlers': {
 
83
            'null': {
 
84
                'level': 'DEBUG',
 
85
                'class': 'django.utils.log.NullHandler',
 
86
                },
 
87
            'console': {
 
88
                # Set the level to "DEBUG" for verbose output logging.
 
89
                'level': 'INFO',
 
90
                'class': 'logging.StreamHandler',
 
91
                },
 
92
            },
 
93
        'loggers': {
 
94
            # Logging from django.db.backends is VERY verbose, send to null
 
95
            # by default.
 
96
            'django.db.backends': {
 
97
                'handlers': ['null'],
 
98
                'propagate': False,
 
99
                },
 
100
            'horizon': {
 
101
                'handlers': ['console'],
 
102
                'propagate': False,
 
103
            },
 
104
            'novaclient': {
 
105
                'handlers': ['console'],
 
106
                'propagate': False,
 
107
            },
 
108
            'keystoneclient': {
 
109
                'handlers': ['console'],
 
110
                'propagate': False,
 
111
            },
 
112
            'nose.plugins.manager': {
 
113
                'handlers': ['console'],
 
114
                'propagate': False,
 
115
            }
 
116
        }
 
117
}