Captcha
CaptchaSCT makes use of the django captcha project: http://code.google.com/p/django-captcha/
1. Installation
Currently it is only used for anonymous posts in the Board and edits in the Wiki when it is detected to be installed.. For this to work follow these steps:
1.1. Prerequisites
Read http://django-captcha.googlecode.com/svn/trunk/djaptcha/documentation.txt on what is required for django-captcha to work. Basically you will only need to check if you've got PIL installed.
1.2. Downloading
svn co http://django-captcha.googlecode.com/svn/trunk/djaptcha/
1.3. Setup
- Add the parent directory of djaptcha to your python library path (e.g. by using sys.path.append(...) in your settings.py
- Add 'djaptcha' to your INSTALLED_APPS setting.
-
additional settings variables:
- FONT_PATH = '/usr/share/fonts/ttf-bitstream-vera/VeraBd.ttf'
- FONT_SIZE = 16
-
optional settings for settings_local.py (showing default settings):
- CAPTCHA_BGCOLOR = (39, 36, 81) # background color RGB tuple for captcha images
- CAPTCHA_FGCOLOR = (153, 204, 0) # foreground color RGB tuple for captcha images
- CAPTCHA_BORDER = 2 # border width in pixels around captcha text
- SPH_SETTINGS['community_register_require_captcha'] = False # require captch for new registrations
- Make sure that in your project's urlconf is an entry like: (r'^community/', include('sphene.community.urls'), defaultdict),
1.4. Done
This should be all that is to do. Now when an anonymous user wants to reply to a thread he should be required to enter a valid captcha.
Last Modified: 2008-06-20 07:33:21 by Leeland - [ Snip Changes ] [ Wiki History ]
1 Comments
Customize ListPlease login to create a new thread.