Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 97 lines (85 sloc) 2.51 kb
04bbedb @alexkay 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
3839a98 @alexkay Initial commit
authored
18 DEBUG = True
19 TEMPLATE_DEBUG = DEBUG
20
21 ADMINS = (
c0ebc69 @alexkay Add an empty app
authored
22 ('admin', 'admin@muspy.com'),
3839a98 @alexkay Initial commit
authored
23 )
24 MANAGERS = ADMINS
25
26 DATABASES = {
27 'default': {
e5c5811 @alexkay Update settings.py
authored
28 'ENGINE': 'django.db.backends.sqlite3',
571a9de @alexkay Add DB schema
authored
29 'NAME': 'db/muspy.db',
3839a98 @alexkay Initial commit
authored
30 }
31 }
32
24ea0e3 @alexkay Clean up
authored
33 TIME_ZONE = None
34 LANGUAGE_CODE = 'en-gb'
e5c5811 @alexkay Update settings.py
authored
35 USE_I18N = False
24ea0e3 @alexkay Clean up
authored
36 USE_L10N = False
3839a98 @alexkay Initial commit
authored
37
b14d6ea @alexkay Sign up / sign in /sign out
authored
38 # TODO: /releases if there are any otherwise /artists, or make it an option
39 LOGIN_REDIRECT_URL = '/'
4f67845 @alexkay Edit settings
authored
40 LOGIN_URL = '/signin'
47c91b7 @alexkay Add UserProfile
authored
41 AUTH_PROFILE_MODULE = 'app.UserProfile'
42 MESSAGE_STORAGE = 'django.contrib.messages.storage.cookie.CookieStorage'
43 ROOT_URLCONF = 'urls'
b14d6ea @alexkay Sign up / sign in /sign out
authored
44
a72c4ca @alexkay Email activation
authored
45 # Change for production
3839a98 @alexkay Initial commit
authored
46 SECRET_KEY = '^c)@qv0@pb$ym&zb^#vm8nuv0972qa9w(#le&atirpvfvi_yjc'
a72c4ca @alexkay Email activation
authored
47 EMAIL_SUBJECT_PREFIX = '[muspy] '
48 EMAIL_HOST = 'localhost'
49 EMAIL_PORT = 1025
50 #EMAIL_HOST_USER =
51 #EMAIL_HOST_PASSWORD =
52 #EMAIL_USE_TLS =
3839a98 @alexkay Initial commit
authored
53
54 TEMPLATE_LOADERS = (
55 'django.template.loaders.filesystem.Loader',
56 )
b14d6ea @alexkay Sign up / sign in /sign out
authored
57 TEMPLATE_DIRS = (
58 'templates',
59 )
60
61 AUTHENTICATION_BACKENDS = (
d98323f @alexkay s/src/app/g
authored
62 'app.backends.EmailAuthBackend',
b14d6ea @alexkay Sign up / sign in /sign out
authored
63 )
3839a98 @alexkay Initial commit
authored
64
65 MIDDLEWARE_CLASSES = (
66 'django.middleware.common.CommonMiddleware',
67 'django.contrib.sessions.middleware.SessionMiddleware',
68 'django.middleware.csrf.CsrfViewMiddleware',
69 'django.contrib.auth.middleware.AuthenticationMiddleware',
70 'django.contrib.messages.middleware.MessageMiddleware',
71 )
72
73 INSTALLED_APPS = (
74 'django.contrib.auth',
75 'django.contrib.sessions',
76 'django.contrib.messages',
47c91b7 @alexkay Add UserProfile
authored
77 'app',
3839a98 @alexkay Initial commit
authored
78 )
79
80 LOGGING = {
81 'version': 1,
82 'disable_existing_loggers': False,
83 'handlers': {
84 'mail_admins': {
85 'level': 'ERROR',
86 'class': 'django.utils.log.AdminEmailHandler'
87 }
88 },
89 'loggers': {
90 'django.request': {
91 'handlers': ['mail_admins'],
92 'level': 'ERROR',
93 'propagate': True,
94 },
95 }
96 }
Something went wrong with that request. Please try again.