annotate bns_website/settings/production.py @ 51:6c7467599fa9
I added the jquery plugin jplayer to use for playing samples of the album. For now I just used some of the songs linked to by the jplayer demo, but I also picked a couple songs at random from my iTunes library. Rather than add them to the repository I just named them 1.mp3, 1.m4a, 1.ogg and 2.mp3, 2.m4a, 2.ogg and anybody that wants to test the player will have to add some random songs themselves.
I only added the "blue monday" player skin because I personally think it looks the best of the examples they supply, but we could change that or roll our own if needed.
author |
Bob Mourlam <bob.mourlam@gmail.com> |
date |
Sun, 13 Nov 2011 17:01:36 -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 }
|