aboutsummaryrefslogtreecommitdiffstats
path: root/django_skaschool/settings_mysql.py
diff options
context:
space:
mode:
Diffstat (limited to 'django_skaschool/settings_mysql.py')
-rw-r--r--django_skaschool/settings_mysql.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/django_skaschool/settings_mysql.py b/django_skaschool/settings_mysql.py
index 05b02c5..d5e69dd 100644
--- a/django_skaschool/settings_mysql.py
+++ b/django_skaschool/settings_mysql.py
@@ -44,6 +44,7 @@ THIRD_PARTY_APPS = (
#'south',
'bootstrap3',
'registration',
+ 'captcha',
)
# LOCAL_APPS
LOCAL_APPS = (
@@ -176,4 +177,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: