~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to mainpage/settings.py

  • Committer: kaputtnik
  • Date: 2019-08-15 08:32:03 UTC
  • mto: This revision was merged to the branch mainline in revision 549.
  • Revision ID: kaputtnik-20190815083203-d8bk37wcwive08y1
cleanups

Show diffs side-by-side

added added

removed removed

Lines of Context:
162
162
DEFAULT_FROM_EMAIL = 'noreply@widelands.org'
163
163
ACCOUNT_ACTIVATION_DAYS = 2  # Days an activation token keeps active
164
164
 
165
 
# Franku: SHA1 Needed as compatibility for old passwords
 
165
# SHA1 Needed as compatibility for old passwords
166
166
# https://docs.djangoproject.com/en/1.11/releases/1.10/#removed-weak-password-hashers-from-the-default-password-hashers-setting
167
167
PASSWORD_HASHERS = [
168
168
    'django.contrib.auth.hashers.PBKDF2PasswordHasher',
190
190
######################
191
191
# Pybb Configuration #
192
192
######################
193
 
# See also pybb defaults in pybb.settings.py
 
193
 
194
194
PYBB_ATTACHMENT_ENABLE = True
195
 
PYBB_ATTACHMENT_SIZE_LIMIT = 1024*1024*5  #5MB
 
195
 
 
196
# To prevent sending errors from the webserver, keep
 
197
# this below the webserver settings 
 
198
PYBB_ATTACHMENT_SIZE_LIMIT = 1024*1024*4
196
199
PYBB_DEFAULT_MARKUP = 'markdown'
197
200
INTERNAL_PERM = 'pybb.can_access_internal' # The permission string derived from pybb.models.category
198
201