~lutostag/ubuntu/utopic/maas/1.5.2

« back to all changes in this revision

Viewing changes to .pc/01-fix-database-settings.patch/contrib/maas_local_settings_sample.py

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2012-03-15 18:14:08 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20120315181408-zgl94hzo0x4n99an
Tags: 0.1+bzr295+dfsg-0ubuntu2
* debian/patches:
  - 01-fix-database-settings.patch: Update to set PSERV_URL.
  - 02-pserv-config.patch: Set port to 8001.
* debian/maas.postinst: Run maas-import-isos on install.
* debian/control: Depends on rabbitmq-server.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Debug/Production mode.
 
2
DEBUG = False
 
3
 
 
4
# Default URL specifying protocol, host, and (if necessary) port where
 
5
# this MAAS can be found.  Configuration can, and probably should,
 
6
# override this.
 
7
DEFAULT_MAAS_URL = "http://maas.internal.example.com/"
 
8
 
 
9
# Absolute path to the directory static files should be collected to.
 
10
STATIC_ROOT = '/var/lib/maas/static/'
 
11
 
 
12
# Prefix to use for MAAS's urls.
 
13
# If FORCE_SCRIPT_NAME is None (the default), all the urls will start with
 
14
# '/'.
 
15
FORCE_SCRIPT_NAME = '/MAAS'
 
16
 
 
17
# Where to store the user uploaded files.
 
18
MEDIA_ROOT = '/var/lib/maas/media/'
 
19
 
 
20
# See http://docs.djangoproject.com/en/dev/topics/logging for
 
21
# more details on how to customize the logging configuration.
 
22
LOGGING = {
 
23
    'version': 1,
 
24
    'disable_existing_loggers': False,
 
25
    'formatters': {
 
26
        'simple': {
 
27
            'format': '%(levelname)s %(asctime)s %(name)s %(message)s'
 
28
        },
 
29
    },
 
30
    'handlers': {
 
31
        'log': {
 
32
            'level': 'ERROR',
 
33
            'class': 'logging.handlers.RotatingFileHandler',
 
34
            'filename': '/var/log/maas/maas.log',
 
35
            'formatter': 'simple',
 
36
        },
 
37
    },
 
38
    'loggers': {
 
39
        'maas': {
 
40
            'handlers': ['log'],
 
41
            'propagate': True,
 
42
        },
 
43
        'django.request': {
 
44
            'handlers': ['log'],
 
45
            'propagate': True,
 
46
        },
 
47
        'django.db.backends': {
 
48
            'handlers': ['log'],
 
49
            'propagate': True,
 
50
        },
 
51
     }
 
52
}
 
53
 
 
54
# Database access configuration.
 
55
DATABASES = {
 
56
    'default': {
 
57
        # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' etc.
 
58
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
 
59
        'NAME': '',
 
60
        'USER': '',
 
61
        'PASSWORD': '',
 
62
        'HOST': 'localhost',
 
63
    }
 
64
}