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
|
# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source',
# 'django.template.loaders.eggs.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",
"notification.context_processors.notification",
"staticfiles.context_processors.static_url",
]
TEMPLATE_CONTEXT_PROCESSORS += (
'userprofile.context_processors.css_classes',
'txcommon.context_processors.site_section',
'txcommon.context_processors.bidi',
)
MIDDLEWARE_CLASSES = [
# Enable GZIP compression
'django.middleware.gzip.GZipMiddleware',
'django.middleware.common.CommonMiddleware',
# Enable protection against Cross Site Request Forgeries
# FIXME: Enable CSRF!
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.doc.XViewMiddleware',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
'django_sorting.middleware.SortingMiddleware',
'django.middleware.transaction.TransactionMiddleware',
'pagination.middleware.PaginationMiddleware',
]
ROOT_URLCONF = 'urls'
TEMPLATE_DIRS = [
'<%= templates_dir %>',
os.path.join(TX_ROOT, 'templates'),
]
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.comments',
'django.contrib.contenttypes',
'django.contrib.flatpages',
'django.contrib.markup',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admindocs',
'notification',
'django_filters',
'django_sorting',
'south',
'tagging',
'pagination',
'piston',
'contact_form',
'ajax_select',
'threadedcomments',
'staticfiles',
'authority',
# Transifex specific apps:
'transifex.txcommon',
# It's coming here due http://trac.transifex.org/ticket/596
'userprofile',
'transifex.languages',
'transifex.projects',
'transifex.releases',
'transifex.actionlog',
'transifex.txpermissions',
'transifex.teams',
'transifex.resources',
'transifex.storage',
# Must come in the end
'django_addons',
]
COMMENTS_APP = 'threadedcomments'
|