-
Notifications
You must be signed in to change notification settings - Fork 25
/
settings.py
93 lines (80 loc) · 2.63 KB
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2011 Alexander Kojevnikov <[email protected]>
#
# muspy is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# muspy is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with muspy. If not, see <http://www.gnu.org/licenses/>.
########################################################################
# Change the next section in production
########################################################################
DEBUG = True
TEMPLATE_DEBUG = DEBUG
SECRET_KEY = 'change me'
SERVER_EMAIL = '[email protected]'
EMAIL_HOST = 'localhost'
EMAIL_PORT = 1025
LASTFM_API_KEY='change me'
########################################################################
ADMINS = (('admin', '[email protected]'),)
MANAGERS = ADMINS
SEND_BROKEN_LINK_EMAILS = True
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'db/muspy.db',
'OPTIONS': { 'timeout': 20 },
}
}
TIME_ZONE = None
USE_I18N = False
LOGIN_REDIRECT_URL = '/artists'
LOGIN_URL = '/signin'
AUTH_PROFILE_MODULE = 'app.UserProfile'
MESSAGE_STORAGE = 'django.contrib.messages.storage.cookie.CookieStorage'
ROOT_URLCONF = 'urls'
EMAIL_SUBJECT_PREFIX = '[muspy] '
TEMPLATE_LOADERS = ('django.template.loaders.filesystem.Loader',)
TEMPLATE_DIRS = ('templates',)
AUTHENTICATION_BACKENDS = ('app.backends.EmailAuthBackend',)
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
)
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'piston',
'app',
)
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'mail_admins': {
'level': 'ERROR',
'class': 'django.utils.log.AdminEmailHandler'
}
},
'loggers': {
'django.request': {
'handlers': ['mail_admins'],
'level': 'ERROR',
'propagate': True,
},
}
}