diff options
Diffstat (limited to 'django_skaschool/settings_production.py')
-rw-r--r-- | django_skaschool/settings_production.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/django_skaschool/settings_production.py b/django_skaschool/settings_production.py index 80eaedf..2d079c6 100644 --- a/django_skaschool/settings_production.py +++ b/django_skaschool/settings_production.py @@ -44,6 +44,7 @@ THIRD_PARTY_APPS = ( #'south', 'bootstrap3', 'registration', + 'captcha', ) # LOCAL_APPS LOCAL_APPS = ( @@ -182,4 +183,33 @@ ACCOUNT_ACTIVATION_DAYS = 7 # whether registration of new accounts if currently permitted REGISTRATION_OPEN = True +## django-recaptcha +# global key (recaptcha.net) +RECAPTCHA_PUBLIC_KEY = '6Lf8dvISAAAAAPljExJQcAkx4jDZPOYbTGXYXCME' +RECAPTCHA_PRIVATE_KEY = '6Lf8dvISAAAAAH75mmLlVWOp6JB9Gx6WARR_6HXb' + +################################################# +## allowed content types to be uploaded by user +ALLOWED_CONTENT_TYPES = [ + 'application/octet-stream', # arbitrary binary data: doc, ppt, etc. + 'application/pdf', # pdf + 'application/postscript', # postscript + 'application/zip', # zip + 'application/gzip', # gzip + 'application/x-7z-compressed', # 7z + 'application/x-dvi', # dvi + 'application/x-latex', # latex + 'application/x-rar-compressed', # rar + 'application/x-tar', # tar + 'image/gif', # gif + 'image/jpeg', # jpg + 'image/png', # png + 'text/html', # html + 'text/plain', # txt + 'text/rtf', # rtf + 'text/xml', # xml + 'text/x-markdown', # markdown +] + + # vim: set ts=4 sw=4 tw=0 fenc=utf-8 ft=python: |