forked from bread-and-pepper/busylissy
-
Notifications
You must be signed in to change notification settings - Fork 2
/
settings.py
109 lines (89 loc) · 2.6 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
import sys, os
relative_path = lambda x: os.path.join(os.path.abspath(os.path.dirname(__file__)), x)
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('', ''),
)
MANAGERS = ADMINS
DATABASE_ENGINE = 'sqlite3'
DATABASE_NAME = 'busylissy.db'
DATABASE_USER = ''
DATABASE_PASSWORD = ''
DATABASE_HOST = ''
DATABASE_PORT = ''
TIME_ZONE = 'Europe/Amsterdam'
LANGUAGE_CODE = 'en-us'
gettext = lambda s: s
LANGUAGES = (
('en', gettext('English')),
('nl', gettext('Dutch')),
('es', gettext('Spanish')),
)
SITE_ID = 1
USE_I18N = True
MEDIA_ROOT = relative_path('media')
MEDIA_URL = 'http://localhost:8000/media/'
ADMIN_MEDIA_PREFIX = '/media/admin/'
SECRET_KEY = 'dummy'
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source',
)
TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.auth',
'django.core.context_processors.debug',
'django.core.context_processors.i18n',
'django.core.context_processors.media',
'django.core.context_processors.request',
'django_authopenid.context_processors.authopenid',
'busylissy.blprofile.context_processors.settings',
)
MIDDLEWARE_CLASSES = (
'localeurl.middleware.LocaleURLMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django_authopenid.middleware.OpenIDMiddleware',
'django.middleware.http.ConditionalGetMiddleware',
'django.middleware.gzip.GZipMiddleware',
'django.middleware.doc.XViewMiddleware',
'django.middleware.cache.FetchFromCacheMiddleware',
)
ROOT_URLCONF = 'busylissy.urls'
TEMPLATE_DIRS = (
relative_path('templates')
)
INSTALLED_APPS = (
'localeurl',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'django.contrib.markup',
'django.contrib.comments',
'django_authopenid',
'registration',
'sorl.thumbnail',
'tagging',
'authority',
'busylissy.blactivity',
'busylissy.blprofile',
'busylissy.blgroup',
'busylissy.blproject',
'busylissy.bltask',
'busylissy.blfile',
'busylissy.blmessage',
'busylissy.blinvite',
'busylissy.blagenda',
)
LOGIN_REDIRECT_URL = '/projects/'
LOGIN_URL = '/account/signin/'
ACCOUNT_ACTIVATION_DAYS = 30
AUTH_PROFILE_MODULE = 'blprofile.UserProfile'
AVATAR_SIZE = 60
AVATAR_THUMBNAIL_SIZE = 36
DISALLOWED_PROJECTS = ('hold', 'active', 'finished')
FORCE_LOWERCASE_TAGS = True
EMAIL_NOTIFICATIONS = True