From c0a125cf62c09336cbb73ab7385bd9dd93ba4cd4 Mon Sep 17 00:00:00 2001 From: Weitian LI Date: Fri, 25 Apr 2014 21:56:48 +0800 Subject: * installed 'django-recaptcha' * added 'captcha' field to UserRegForm --- django_skaschool/settings.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'django_skaschool') diff --git a/django_skaschool/settings.py b/django_skaschool/settings.py index 7bb21b3..f80c964 100644 --- a/django_skaschool/settings.py +++ b/django_skaschool/settings.py @@ -44,6 +44,7 @@ THIRD_PARTY_APPS = ( #'south', 'bootstrap3', 'registration', + 'captcha', ) # LOCAL_APPS LOCAL_APPS = ( @@ -166,4 +167,9 @@ 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' + # vim: set ts=4 sw=4 tw=0 fenc=utf-8 ft=python: -- cgit v1.2.2