annotate bns_website/settings/production.py @ 36:1eb4b4072888
More useful to do a pull -u than an update in the fabric file.
author |
Brian Neal <bgneal@gmail.com> |
date |
Sun, 06 Nov 2011 14:19:12 -0600 |
parents |
6f68f6800843 |
children |
0e1f1e8db2a5 |
rev |
line source |
bgneal@26
|
1 # Django production settings for bns_website project.
|
bgneal@26
|
2
|
bgneal@26
|
3 from settings.base import *
|
bgneal@26
|
4
|
bgneal@26
|
5 DEBUG = False
|
bgneal@26
|
6 TEMPLATE_DEBUG = DEBUG
|
bgneal@26
|
7
|
bgneal@26
|
8 DATABASES = {
|
bgneal@26
|
9 'default': {
|
bgneal@26
|
10 'ENGINE': 'django.db.backends.mysql',
|
bgneal@26
|
11 'NAME': 'bravenewsurf',
|
bgneal@26
|
12 'USER': SECRETS['DB_USER'],
|
bgneal@26
|
13 'PASSWORD': SECRETS['DB_PASSWORD'],
|
bgneal@26
|
14 },
|
bgneal@26
|
15 }
|
bgneal@26
|
16
|
bgneal@26
|
17 LOGGING = {
|
bgneal@26
|
18 'version': 1,
|
bgneal@26
|
19 'disable_existing_loggers': True,
|
bgneal@26
|
20 'formatters': {
|
bgneal@26
|
21 'verbose': {
|
bgneal@26
|
22 'format': '%(asctime)s %(levelname)s %(module)s %(process)d %(thread)d %(message)s'
|
bgneal@26
|
23 },
|
bgneal@26
|
24 'simple': {
|
bgneal@26
|
25 'format': '%(asctime)s %(levelname)s %(message)s'
|
bgneal@26
|
26 },
|
bgneal@26
|
27 },
|
bgneal@26
|
28 'handlers': {
|
bgneal@26
|
29 'console': {
|
bgneal@26
|
30 'class': 'logging.StreamHandler',
|
bgneal@26
|
31 'level': 'DEBUG',
|
bgneal@26
|
32 'formatter': 'simple',
|
bgneal@26
|
33 },
|
bgneal@26
|
34 'file': {
|
bgneal@26
|
35 'class': 'logging.handlers.RotatingFileHandler',
|
bgneal@26
|
36 'level': 'DEBUG',
|
bgneal@26
|
37 'formatter': 'simple',
|
bgneal@26
|
38 'filename': os.path.join(PROJECT_PATH, 'logs', 'bns.log'),
|
bgneal@26
|
39 'mode': 'a',
|
bgneal@26
|
40 'maxBytes': 100 * 1024,
|
bgneal@26
|
41 'backupCount': 10,
|
bgneal@26
|
42 },
|
bgneal@26
|
43 'mail_admins': {
|
bgneal@26
|
44 'class': 'django.utils.log.AdminEmailHandler',
|
bgneal@26
|
45 'level': 'ERROR',
|
bgneal@26
|
46 'formatter': 'simple',
|
bgneal@26
|
47 },
|
bgneal@26
|
48 },
|
bgneal@26
|
49 'loggers': {
|
bgneal@26
|
50 'django':{
|
bgneal@26
|
51 'level': 'ERROR',
|
bgneal@26
|
52 'propagate': False,
|
bgneal@26
|
53 'handlers': ['file'],
|
bgneal@26
|
54 },
|
bgneal@26
|
55 },
|
bgneal@26
|
56 'root': {
|
bgneal@26
|
57 'level': 'DEBUG',
|
bgneal@26
|
58 'handlers': ['file'],
|
bgneal@26
|
59 },
|
bgneal@26
|
60 }
|