Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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