~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to mainpage/settings.py

  • Committer: kaputtnik
  • Date: 2019-08-11 12:01:32 UTC
  • mto: (544.2.15 pybb_attachments)
  • mto: This revision was merged to the branch mainline in revision 549.
  • Revision ID: kaputtnik-20190811120132-vrkrgrqn77ijih38
added a check for wai files, they need special treatment; create a link to a wikiarticle

Show diffs side-by-side

added added

removed removed

Lines of Context:
207
207
    ]
208
208
 
209
209
ALLOWED_EXTENSIONS = ['wgf', 'jpg', 'jpeg', 'gif', 'png', 'ogg', 'lua',
210
 
                      'ods', 'zip', 'json', 'txt', 'csv']
 
210
                      'ods', 'zip', 'json', 'txt', 'csv', 'wai']
 
211
# Do not check mime type for these extensions
 
212
SKIP_MIME_EXTENSIONS = ['wai',]
 
213
ALLOWED_WAI_SECTIONS = ['magic_numbers', 'neuron_values',
 
214
                        'neuron_functions', 'fneurons',
 
215
                        ]
 
216
 
 
217
UPLOAD_WIKI_PAGE = 'Attachments'
211
218
 
212
219
##############################################
213
220
# Link classification and other Markup stuff #