~widelands-dev/widelands-website/django_staticfiles

1 by Holger Rapp
Initial commit of new widelands homepage
1
# Django settings for widelands project.
2
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
3
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
4
import os
5
429.4.1 by franku
overriding defult views #1
6
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
1 by Holger Rapp
Initial commit of new widelands homepage
7
DEBUG = True
8
9
ADMINS = (
10
    # ('Your Name', 'your_email@domain.com'),
11
)
12
13
MANAGERS = ADMINS
14
254 by Holger Rapp
Fixed a few deprecation warnings and reparied cross site scripting fixes for AJAX requests
15
DATABASES = {
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
16
    'default': {
17
        'ENGINE': 'django.db.backends.sqlite3',
18
        'NAME': 'dev.db',
19
        'USER': '',      # Not used with sqlite3.
20
        'PASSWORD': '',  # Not used with sqlite3.
21
        # Set to empty string for localhost. Not used with sqlite3.
22
        'HOST': '',
23
        # Set to empty string for default. Not used with sqlite3.
24
        'PORT': '',
25
    }
254 by Holger Rapp
Fixed a few deprecation warnings and reparied cross site scripting fixes for AJAX requests
26
}
1 by Holger Rapp
Initial commit of new widelands homepage
27
28
# Local time zone for this installation. Choices can be found here:
29
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
30
# although not all choices may be available on all operating systems.
31
# If running in a Windows environment this must be set to the same as your
32
# system time zone.
33
TIME_ZONE = 'Europe/Berlin'
438.1.6 by franku
run the script
34
USE_TZ = False  # See https://docs.djangoproject.com/en/1.8/ref/settings/#std:setting-TIME_ZONE
1 by Holger Rapp
Initial commit of new widelands homepage
35
36
# Language code for this installation. All choices can be found here:
37
# http://www.i18nguy.com/unicode/language-identifiers.html
325.1.4 by Shevonar
Added new design for forums
38
LANGUAGE_CODE = 'en'
1 by Holger Rapp
Initial commit of new widelands homepage
39
40
SITE_ID = 1
41
264 by Holger Rapp
No more direct logging in on the page to prevent CSRF attacks
42
# Where should logged in user go by default?
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
43
LOGIN_REDIRECT_URL = '/'
264 by Holger Rapp
No more direct logging in on the page to prevent CSRF attacks
44
1 by Holger Rapp
Initial commit of new widelands homepage
45
# If you set this to False, Django will make some optimizations so as not
46
# to load the internationalization machinery.
166 by Holger Rapp
Disabled internationalisation
47
USE_I18N = False
1 by Holger Rapp
Initial commit of new widelands homepage
48
49
# Absolute path to the directory that holds media.
50
# Example: "/home/media/media.lawrence.com/"
512 by franku
some cleanups
51
# Overwritten in local_settings.py
1 by Holger Rapp
Initial commit of new widelands homepage
52
MEDIA_ROOT = ''
53
54
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
55
# trailing slash if there is a path component (optional in other cases).
56
# Examples: "http://media.lawrence.com", "http://example.com/media/"
18 by Holger Rapp
Halfway added the forum. Refactored css & basic layout to get rid of this table madness
57
MEDIA_URL = '/wlmedia/'
1 by Holger Rapp
Initial commit of new widelands homepage
58
509 by franku
adapted to django default static file handling
59
# Absoltute path where static files from thirdparty apps will be collected using
60
# the command: ./manage.py collectstatic
510 by franku
merged trunk, resolved conflicts
61
STATIC_ROOT = os.path.join(BASE_DIR, 'media/static_foreign/')
509 by franku
adapted to django default static file handling
62
63
# URL to use when referring to static files located in STATIC_ROOT.
64
# Must be different than MEDIA_URL!
65
# https://docs.djangoproject.com/en/1.8/howto/static-files/
66
STATIC_URL = '/static/'
67
1 by Holger Rapp
Initial commit of new widelands homepage
68
# Make this unique, and don't share it with anybody.
69
SECRET_KEY = '#*bc7*q0-br42fc&6l^x@zzk&(=-#gr!)fn@t30n54n05jkqcu'
70
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
71
ROOT_URLCONF = 'urls'
72
404.2.8 by franku
first partially working version with old data
73
# List of finder classes that know how to find static files in
74
# various locations.
75
STATICFILES_FINDERS = [
438.1.6 by franku
run the script
76
    'django.contrib.staticfiles.finders.FileSystemFinder',
77
    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
404.2.8 by franku
first partially working version with old data
78
]
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
79
489.1.11 by franku
tweaks for settings; added setting PASSWORD_HASHERS
80
INSTALLED_APPS = [
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
81
    'django.contrib.admin',
82
    'django.contrib.auth',
83
    'django.contrib.contenttypes',
84
    'django.contrib.sessions',
404.2.8 by franku
first partially working version with old data
85
    'django.contrib.messages',
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
86
    'django.contrib.staticfiles',
87
    'django.contrib.sites',
88
    'django.contrib.humanize',
429.3.12 by franku
merged with trunk and fixed wrong resolving of merge conflict
89
    'django.contrib.sitemaps',
404.2.28 by franku
actualized registration, Added norecaptcha2, but registrations do not work correct yet, small nits
90
    'nocaptcha_recaptcha',
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
91
92
    # Our own apps
93
    'wiki.templatetags.restructuredtext',
94
    'mainpage',
404.2.8 by franku
first partially working version with old data
95
    'wlhelp',
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
96
    'wlimages',
97
    'wlwebchat',
98
    'wlprofile',
99
    'wlsearch',
100
    'wlpoll',
101
    'wlevents',
489.1.3 by franku
fixed creation of noticetypes -> convert post_syncdb to post_migrate
102
    'wlmaps.apps.WlMapsConfig',
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
103
    'wlscreens',
104
    'wlggz',
478.1.1 by gschmitlin at gmail
added scheduling module in a clean way
105
    'wlscheduling',
489.1.6 by franku
run through 1.9 release notes
106
    'check_input.apps.CheckInput',
479.2.21 by franku
save the needed files in the webites code, not in the widelands source code; use a management command to create the documentation
107
    'documentation',
500.1.1 by franku
added an privacy policy app
108
    'privacy_policy.apps.PrivacyPolicyConfig',
462.3.1 by franku
first functioning search with haystack and whoosh; working: wlmaps, pybb.topic, pybb.post
109
    'haystack', # search engine; see option HAYSTACK_CONNECTIONS
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
110
111
    # Modified 3rd party apps
489.1.3 by franku
fixed creation of noticetypes -> convert post_syncdb to post_migrate
112
    'wiki.apps.WikiConfig',  # This is based on wikiapp, but has some local modifications
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
113
    'news',  # This is based on simple-blog, but has some local modifications
404.2.10 by franku
some fixes and updated txt files
114
    'news.managers',
489.1.3 by franku
fixed creation of noticetypes -> convert post_syncdb to post_migrate
115
    'pybb.apps.PybbConfig',  # Feature enriched version of pybb
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
116
404.2.32 by franku
patched GunChleocs work on wlhelp into this and adjusted it to django1.8; cleanups
117
    # Thirdparty apps
438.1.6 by franku
run the script
118
    'threadedcomments',  # included as wlapp
404.2.41 by franku
use a more maintained pagination fork; minor corrections
119
    'notification',     # included as wlapp
489.1.3 by franku
fixed creation of noticetypes -> convert post_syncdb to post_migrate
120
    'django_messages_wl.apps.WLDjangoMessagesConfig',
489.1.4 by franku
replace unmaintained pagination app; fixes for context_instance, NoArgsCommand and resolve_variable()
121
    'dj_pagination',
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
122
    'tagging',
502.1.1 by franku
include django_star_ratings
123
    'star_ratings',
489.1.11 by franku
tweaks for settings; added setting PASSWORD_HASHERS
124
]
1 by Holger Rapp
Initial commit of new widelands homepage
125
489.1.10 by franku
use of new setting MIDDLEWARE instead of MIDDLEWARE_CLASSES
126
MIDDLEWARE = [
127
    'django.middleware.security.SecurityMiddleware',
128
    'django.contrib.sessions.middleware.SessionMiddleware',
1 by Holger Rapp
Initial commit of new widelands homepage
129
    'django.middleware.common.CommonMiddleware',
242.4.11 by janus
Add CSRF Token MW and move tracking load modul position
130
    'django.middleware.csrf.CsrfViewMiddleware',
1 by Holger Rapp
Initial commit of new widelands homepage
131
    'django.contrib.auth.middleware.AuthenticationMiddleware',
489.1.10 by franku
use of new setting MIDDLEWARE instead of MIDDLEWARE_CLASSES
132
    'django.contrib.messages.middleware.MessageMiddleware',
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
133
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
489.1.10 by franku
use of new setting MIDDLEWARE instead of MIDDLEWARE_CLASSES
134
    
135
    # Foreign middleware
489.1.4 by franku
replace unmaintained pagination app; fixes for context_instance, NoArgsCommand and resolve_variable()
136
    'dj_pagination.middleware.PaginationMiddleware',
489.1.18 by franku
replace tracking with a single online_users_middleware
137
    'online_users_middleware.OnlineNowMiddleware',
489.1.10 by franku
use of new setting MIDDLEWARE instead of MIDDLEWARE_CLASSES
138
]
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
139
140
TEMPLATES = [
141
    {
142
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
143
        'DIRS': [os.path.join(BASE_DIR, 'templates')],
404.2.8 by franku
first partially working version with old data
144
        'APP_DIRS': True,
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
145
        'OPTIONS': {
146
            'context_processors': [
147
                'django.template.context_processors.debug',
148
                'django.template.context_processors.request',
149
                'django.contrib.auth.context_processors.auth',
404.2.7 by franku
updated pip_requirements.text; more conversion on generic views
150
                'django.contrib.messages.context_processors.messages',
404.2.28 by franku
actualized registration, Added norecaptcha2, but registrations do not work correct yet, small nits
151
                'django.template.context_processors.i18n',
152
                'django.template.context_processors.media',
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
153
                'django.template.context_processors.static',
154
                'django.template.context_processors.tz',
404.2.8 by franku
first partially working version with old data
155
                'django_messages.context_processors.inbox',
497.2.8 by franku
make dleted username configurable, some string fixes
156
                'wlprofile.context_processors.deleted_user_data',
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
157
            ],
158
        },
159
    },
160
]
161
11 by Holger Rapp
Imported wikiapp into our repository, because we did some local changes (users must be logged in to edit wiki pages)
162
############################
163
# Activation configuration #
164
############################
6 by Holger Rapp
added missing From Email
165
DEFAULT_FROM_EMAIL = 'noreply@widelands.org'
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
166
ACCOUNT_ACTIVATION_DAYS = 2  # Days an activation token keeps active
5 by Holger Rapp
added registration, hacked on login
167
489.1.11 by franku
tweaks for settings; added setting PASSWORD_HASHERS
168
# Franku: SHA1 Needed as compatibility for old passwords
169
# https://docs.djangoproject.com/en/1.11/releases/1.10/#removed-weak-password-hashers-from-the-default-password-hashers-setting
170
PASSWORD_HASHERS = [
171
    'django.contrib.auth.hashers.PBKDF2PasswordHasher',
172
    'django.contrib.auth.hashers.SHA1PasswordHasher'
173
]
174
11 by Holger Rapp
Imported wikiapp into our repository, because we did some local changes (users must be logged in to edit wiki pages)
175
######################
176
# Wiki configuration #
177
######################
178
WIKI_LOCK_DURATION = 30
325.1.7 by Shevonar
Login box works now via an iFrame.
179
WIKI_URL_RE = r'[:\-\w ]+'
325.1.8 by Shevonar
- switched screenshot gallery from lightbox to fancybox
180
WIKI_WORD_RE = r'[:\-\w ]+'
11 by Holger Rapp
Imported wikiapp into our repository, because we did some local changes (users must be logged in to edit wiki pages)
181
21 by Holger Rapp
- Forum is now ready to be used
182
######################
183
# User configuration #
184
######################
447.1.1 by franku
cleanup settings.py; removed some commented code; changed NOCOMMs in TODOs
185
DEFAULT_TIME_ZONE = 3  # See wlprofile.templatetags.custom_date
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
186
DEFAULT_TIME_DISPLAY = r"%ND(Y-m-d,) H:i"  # According to ISO 8601
187
DEFAULT_MARKUP = 'markdown'
62.1.7 by Holger Rapp
Added support for profiles. No gravatar yet
188
SIGNATURE_MAX_LENGTH = 255
189
SIGNATURE_MAX_LINES = 8
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
190
AVATARS_UPLOAD_TO = 'profile/avatars'
254 by Holger Rapp
Fixed a few deprecation warnings and reparied cross site scripting fixes for AJAX requests
191
AVATAR_HEIGHT = AVATAR_WIDTH = 80
21 by Holger Rapp
- Forum is now ready to be used
192
193
######################
194
# Pybb Configuration #
195
######################
462.3.28 by franku
revert accidentally enabled pybb attachments
196
PYBB_ATTACHMENT_ENABLE = False  # disable gzip middleware when enabling attachments
41 by Holger Rapp
WikiWords in News/Forum Posts, markdown is default markup in forum, bbcode needed to be removed for this to work
197
PYBB_DEFAULT_MARKUP = 'markdown'
325.1.6 by Shevonar
Fixed bbcode preview and small bug fixes in the forum templates
198
PYBB_FREEZE_FIRST_POST = False
21 by Holger Rapp
- Forum is now ready to be used
199
97 by Holger Rapp
Added smileys to wlmarkdown (wiki,forum,news)
200
##############################################
201
# Link classification and other Markup stuff #
202
##############################################
48.1.7 by Holger Rapp
Implemented wishlist bug for colored links
203
LOCAL_DOMAINS = [
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
204
    'xoops.widelands.org'
48.1.7 by Holger Rapp
Implemented wishlist bug for colored links
205
]
404.2.24 by franku
added the old threadedcomments app as wildelands app
206
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
207
SMILEY_DIR = MEDIA_URL + 'img/smileys/'
97 by Holger Rapp
Added smileys to wlmarkdown (wiki,forum,news)
208
# Keep this list ordered by length of smileys
209
SMILEYS = [
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
210
    ('O:-)', 'face-angel.png'),
211
    ('O:)', 'face-angel.png'),
212
    (':-/', 'face-confused.png'),
213
    (':/', 'face-confused.png'),
214
    ('B-)', 'face-cool.png'),
215
    ('B)', 'face-cool.png'),
216
    (":'-(", 'face-crying.png'),
217
    (":'(", 'face-crying.png'),
218
    (':-))', 'face-smile-big.png'),
219
    (':))', 'face-smile-big.png'),
220
    (':-)', 'face-smile.png'),
221
    (':)', 'face-smile.png'),
504.3.21 by franku
change devilish smiley
222
    (']:-)', 'face-devilish.png'),
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
223
    ('8-)', 'face-glasses.png'),
224
    ('8)', 'face-glasses.png'),
225
    (':-D', 'face-grin.png'),
226
    (':D', 'face-grin.png'),
227
    (':-x', 'face-kiss.png'),
228
    (':x', 'face-kiss.png'),
229
    (':-*', 'face-kiss.png'),
230
    (':*', 'face-kiss.png'),
231
    (':-((', 'face-mad.png'),
232
    (':((', 'face-mad.png'),
233
    (':-||', 'face-mad.png'),
234
    (':||', 'face-mad.png'),
235
    (':(|)', 'face-monkey.png'),
236
    (':-|', 'face-plain.png'),
237
    (':|', 'face-plain.png'),
238
    (':-(', 'face-sad.png'),
239
    (':(', 'face-sad.png'),
240
    (':-O', 'face-shock.png'),
241
    (':O', 'face-shock.png'),
242
    (':-o', 'face-surprise.png'),
243
    (':o', 'face-surprise.png'),
244
    (':-P', 'face-tongue.png'),
245
    (':P', 'face-tongue.png'),
246
    (':-S', 'face-upset.png'),
247
    (':S', 'face-upset.png'),
248
    (';-)', 'face-wink.png'),
249
    (';)', 'face-wink.png'),
97 by Holger Rapp
Added smileys to wlmarkdown (wiki,forum,news)
250
]
48.1.7 by Holger Rapp
Implemented wishlist bug for colored links
251
462.3.1 by franku
first functioning search with haystack and whoosh; working: wlmaps, pybb.topic, pybb.post
252
#################
253
# Search Config #
254
#################
255
HAYSTACK_CONNECTIONS = {
256
    'default': {
257
        'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine',
258
        'PATH': os.path.join(os.path.dirname(__file__), 'whoosh_index'),
259
    },
260
}
261
110 by Holger Rapp
Added new tag for markdown svn:r3222 will be translated into a clickable link to a revision
262
###########################
263
# Widelands SVN directory #
264
###########################
265
# This is needed for various thinks, for example
266
# to access media (for minimap creation) or for online help
267
# or for ChangeLog displays
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
268
WIDELANDS_SVN_DIR = ''
110 by Holger Rapp
Added new tag for markdown svn:r3222 will be translated into a clickable link to a revision
269
147 by Holger Rapp
Added a first version of a screenshot application
270
###############
271
# Screenshots #
272
###############
404.2.6 by franku
updated settings.py pip_requirements; first try on polls,news and loginbox; still not woriking at all; so many differences :-D
273
THUMBNAIL_SIZE = (160, 160)
147 by Holger Rapp
Added a first version of a screenshot application
274
325.1.9 by Shevonar
Maps modul reworked and adjusted to new style.
275
########
276
# Maps #
277
########
278
MAPS_PER_PAGE = 10
279
397.2.2 by franku
recipients as name/adress
280
##############################################
281
## Recipient(s) who get an email if someone ##
404.2.37 by franku
some corrections
282
## uses the form on legal notice page       ##
397.2.2 by franku
recipients as name/adress
283
## Use allways the form ('name', 'Email')   ##
284
##############################################
404.2.7 by franku
updated pip_requirements.text; more conversion on generic views
285
INQUIRY_RECIPIENTS = [
404.2.8 by franku
first partially working version with old data
286
    ('peter', 'peter@example.com'),
404.2.7 by franku
updated pip_requirements.text; more conversion on generic views
287
]
397.2.1 by franku
A legal notice page
288
404.2.39 by franku
use bleach as html sanitizer
289
##########################################
290
## Allowed tags/attributes for 'bleach' ##
404.2.41 by franku
use a more maintained pagination fork; minor corrections
291
## Used for sanitizing user input.      ##
404.2.39 by franku
use bleach as html sanitizer
292
##########################################
293
BLEACH_ALLOWED_TAGS = [u'a',
294
                       u'abbr',
295
                       u'acronym',
296
                       u'blockquote',
297
                       u'br',
404.2.40 by franku
don't bleach tables; bleach threadedcomments
298
                       u'em',  u'i',  u'strong', u'b',
299
                       u'ul',  u'ol', u'li',
300
                       u'div', u'p',
301
                       u'h1',  u'h2', u'h3', u'h4', u'h5', u'h6',
302
                       u'pre', u'code',
404.2.39 by franku
use bleach as html sanitizer
303
                       u'img',
404.2.40 by franku
don't bleach tables; bleach threadedcomments
304
                       u'hr',
305
                       u'table', u'tbody', u'thead', u'th', u'tr', u'td',
413.1.1 by franku
reworked http500 error page; redirect /docs to docs/wl
306
                       u'sup',
438.1.6 by franku
run the script
307
                       ]
404.2.40 by franku
don't bleach tables; bleach threadedcomments
308
438.1.6 by franku
run the script
309
BLEACH_ALLOWED_ATTRIBUTES = {'img': ['src', 'alt'], 'a': [
310
    'href'], 'td': ['align'], '*': ['class', 'id', 'title']}
404.2.8 by franku
first partially working version with old data
311
489.1.18 by franku
replace tracking with a single online_users_middleware
312
##########################
313
# Pagination settings    #
314
# for dj-pagination      #
315
##########################
468.1.5 by franku
removed pybb pagination; some fiddling ith css
316
PAGINATION_DEFAULT_WINDOW = 2
317
489.1.19 by franku
fix url for django_messages and cleanups
318
###########################
319
# Settings for displaying #
320
# online users            #
321
###########################
322
323
# Time in seconds how long a user will be shown online
493.1.3 by franku
reduce time a user is considered online
324
ONLINE_THRESHOLD = 60 * 15
489.1.19 by franku
fix url for django_messages and cleanups
325
# Number of stored users
489.1.20 by franku
fixed JS user filtering for PMs
326
ONLINE_MAX = 25
468.1.5 by franku
removed pybb pagination; some fiddling ith css
327
497.2.12 by franku
better use a column in wlprofile to identify a deleted user
328
###########################################
329
# Settings for users who deleted themself #
330
###########################################
497.2.8 by franku
make dleted username configurable, some string fixes
331
497.2.16 by franku
set email to an empty string
332
DELETED_MAIL_ADDRESS = ''
497.2.17 by franku
changed deleted username; small css-fix for comments where the username is small
333
DELETED_USERNAME = 'Ex-Member'
497.2.6 by franku
make deleted email address configurable
334
497.3.2 by franku
some modified settings for cookies
335
###################
336
# Cookie settings #
337
###################
497.3.3 by franku
set only csrf_cookie_age to none is enough
338
497.3.4 by franku
fixed link; fixed showing deleted user when quoting a post
339
# See: https://docs.djangoproject.com/en/dev/ref/settings/#csrf-cookie-age
497.3.3 by franku
set only csrf_cookie_age to none is enough
340
CSRF_COOKIE_AGE = None
497.3.2 by franku
some modified settings for cookies
341
502.1.6 by franku
fixed comment
342
#############################
343
# star_rating configuration #
344
#############################
502.1.1 by franku
include django_star_ratings
345
502.1.3 by franku
to control migrating of votes to new app, show both votes
346
STAR_RATINGS_STAR_HEIGHT = 14
347
STAR_RATINGS_STAR_WIDTH = 14
502.1.1 by franku
include django_star_ratings
348
STAR_RATINGS_RANGE = 10
349
1 by Holger Rapp
Initial commit of new widelands homepage
350
try:
438.1.6 by franku
run the script
351
    from local_settings import *
1 by Holger Rapp
Initial commit of new widelands homepage
352
except ImportError:
438.1.6 by franku
run the script
353
    pass