78
78
'django.contrib.humanize',
79
79
'django.contrib.sitemaps',
80
80
'nocaptcha_recaptcha',
81
# Thirdparty apps, but need preload
82
'tracking', # included as wlapp
85
83
'wiki.templatetags.restructuredtext',
92
'wlmaps.apps.WlMapsConfig',
96
'check_input.apps.CheckInput',
99
97
'haystack', # search engine; see option HAYSTACK_CONNECTIONS
101
99
# Modified 3rd party apps
102
'wiki', # This is based on wikiapp, but has some local modifications
100
'wiki.apps.WikiConfig', # This is based on wikiapp, but has some local modifications
103
101
'news', # This is based on simple-blog, but has some local modifications
105
'pybb', # Feature enriched version of pybb
103
'pybb.apps.PybbConfig', # Feature enriched version of pybb
107
105
# Thirdparty apps
108
106
'threadedcomments', # included as wlapp
109
107
'notification', # included as wlapp
111
'linaro_django_pagination',
108
'django_messages_wl.apps.WLDjangoMessagesConfig',
113
111
'djangoratings', # included as wlapp
114
112
'sphinxdoc', # included as wlapp
117
MIDDLEWARE_CLASSES = (
116
'django.middleware.security.SecurityMiddleware',
117
'django.contrib.sessions.middleware.SessionMiddleware',
118
118
'django.middleware.common.CommonMiddleware',
119
'django.contrib.sessions.middleware.SessionMiddleware',
120
'django.contrib.messages.middleware.MessageMiddleware',
121
119
'django.middleware.csrf.CsrfViewMiddleware',
122
120
'django.contrib.auth.middleware.AuthenticationMiddleware',
123
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
121
'django.contrib.messages.middleware.MessageMiddleware',
124
122
'django.middleware.clickjacking.XFrameOptionsMiddleware',
125
'django.middleware.security.SecurityMiddleware',
127
'linaro_django_pagination.middleware.PaginationMiddleware',
128
'tracking.middleware.VisitorTrackingMiddleware',
129
'tracking.middleware.VisitorCleanUpMiddleware',
125
'dj_pagination.middleware.PaginationMiddleware',
126
'online_users_middleware.OnlineNowMiddleware',
161
158
DEFAULT_FROM_EMAIL = 'noreply@widelands.org'
162
159
ACCOUNT_ACTIVATION_DAYS = 2 # Days an activation token keeps active
161
# Franku: SHA1 Needed as compatibility for old passwords
162
# https://docs.djangoproject.com/en/1.11/releases/1.10/#removed-weak-password-hashers-from-the-default-password-hashers-setting
164
'django.contrib.auth.hashers.PBKDF2PasswordHasher',
165
'django.contrib.auth.hashers.SHA1PasswordHasher'
164
168
######################
165
169
# Wiki configuration #
166
170
######################
311
310
BLEACH_ALLOWED_ATTRIBUTES = {'img': ['src', 'alt'], 'a': [
312
311
'href'], 'td': ['align'], '*': ['class', 'id', 'title']}
314
################################
315
# Pagination settings #
316
# for linaro-django-pagination #
317
################################
313
##########################
314
# Pagination settings #
315
# for dj-pagination #
316
##########################
318
317
PAGINATION_DEFAULT_WINDOW = 2
319
###########################
320
# Settings for displaying #
322
###########################
324
# Time in seconds how long a user will be shown online
325
ONLINE_THRESHOLD = 60 * 30
326
# Number of stored users
322
330
from local_settings import *