diff options
Diffstat (limited to 'django_skaschool/settings.py')
-rw-r--r-- | django_skaschool/settings.py | 53 |
1 files changed, 28 insertions, 25 deletions
diff --git a/django_skaschool/settings.py b/django_skaschool/settings.py index f64e098..7a20a0f 100644 --- a/django_skaschool/settings.py +++ b/django_skaschool/settings.py @@ -51,6 +51,7 @@ LOCAL_APPS = ( 'account', 'page', 'notice', + 'archive', ) # INSTALLED_APPS INSTALLED_APPS = DEFAULT_APPS + THIRD_PARTY_APPS + LOCAL_APPS @@ -175,21 +176,25 @@ RECAPTCHA_PRIVATE_KEY = '6Lf8dvISAAAAAH75mmLlVWOp6JB9Gx6WARR_6HXb' ################################################# ## allowed content types to be uploaded by user ALLOWED_CONTENT_TYPES = [ - 'application/gzip', # gzip - 'application/msword', # doc - 'application/pdf', # pdf - 'application/postscript', # postscript - 'application/rar', # rar + 'application/gzip', # gzip + 'application/msword', # doc + 'application/pdf', # pdf + 'application/postscript', # postscript + 'application/rar', # rar + 'application/vnd.ms-excel', # xls 'application/vnd.oasis.opendocument.spreadsheet', # ods - 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', # xlsx + 'application/vnd.oasis.opendocument.text', # odt + 'application/vnd.oasis.opendocument.presentation', # odp + 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', # xlsx 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', # docx - 'application/wps-office.doc', # wps doc/rtf - 'application/wps-office.dps', # wps dps - 'application/wps-office.et', # wps et - 'application/wps-office.ppt', # wps ppt - 'application/wps-office.pptx', # wps pptx - 'application/wps-office.wps', # wps wps - 'application/wps-office.xls', # wps xls + 'application/vnd.openxmlformats-officedocument.presentationml.presentation', # pptx + 'application/wps-office.doc', # wps doc/rtf + 'application/wps-office.dps', # wps dps + 'application/wps-office.et', # wps et + 'application/wps-office.ppt', # wps ppt + 'application/wps-office.pptx', # wps pptx + 'application/wps-office.wps', # wps wps + 'application/wps-office.xls', # wps xls 'application/zip', # zip 'application/x-7z-compressed', # 7z 'application/x-bzip2', # bz2 @@ -197,18 +202,16 @@ ALLOWED_CONTENT_TYPES = [ 'application/x-latex', # latex 'application/x-rar-compressed', # rar 'application/x-tar', # tar - 'image/bmp', # bmp - 'image/gif', # gif - 'image/jpeg', # jpg - 'image/png', # png - 'image/tiff', # tif - 'text/csv', # csv - 'text/html', # html - 'text/plain', # txt - 'text/rtf', # rtf - 'text/xml', # xml - 'text/x-markdown', # markdown - 'text/x-tex', # latex + 'image/bmp', # bmp + 'image/gif', # gif + 'image/jpeg', # jpg + 'image/png', # png + 'image/tiff', # tif + 'text/csv', # csv + 'text/plain', # txt + 'text/rtf', # rtf + 'text/x-markdown', # markdown + 'text/x-tex', # latex ] ## allowed filesize of uploaded files ALLOWED_MAX_UPLOAD_SIZE = 10485760 # 10 MB |