| - Add the parent directory of djaptcha to your pyt | | - Add the parent directory of djaptcha to your pyt |
| hon library path (e.g. by using sys.path.append(.. | | hon library path (e.g. by using sys.path.append(.. |
| .) in your settings.py | | .) in your settings.py |
| - Add 'djaptcha' to your INSTALLED_APPS setting. | | - Add 'djaptcha' to your INSTALLED_APPS setting. |
| - additional settings variables: | | - additional settings variables: |
| - FONT_PATH = '/usr/share/fonts/ttf-bitstream- | | - FONT_PATH = '/usr/share/fonts/ttf-bitstream- |
| vera/\VeraBd.ttf' | | vera/\VeraBd.ttf' |
| - FONT_SIZE = 16 | | - FONT_SIZE = 16 |
n | - optional settings (showing default settings): | n | - optional settings for settings_local.py (showing |
| | | default settings): |
| - CAPTCHA_BGCOLOR = (39, 36, 81) # background | | - CAPTCHA_BGCOLOR = (39, 36, 81) # background |
| color RGB tuple for captcha images | | color RGB tuple for captcha images |
| - CAPTCHA_FGCOLOR = (153, 204, 0) # foreground | | - CAPTCHA_FGCOLOR = (153, 204, 0) # foreground |
| color RGB tuple for captcha images | | color RGB tuple for captcha images |
| - CAPTCHA_BORDER = 2 # border width in pixels | | - CAPTCHA_BORDER = 2 # border width in pixels |
| around captcha text | | around captcha text |
n | | n | - SPH_SETTINGS['community_register_require_cap |
| | | tcha'] = False # require captch for new registrati |
| | | ons
|
| - Make sure that in your project's urlconf is an e | | - Make sure that in your project's urlconf is an e |
| ntry like: (r'^community/', include('sphene.commun | | ntry like: (r'^community/', include('sphene.commun |
| ity.urls'), defaultdict), | | ity.urls'), defaultdict), |
t |
| t | |
| | | |
| ## Done | | ## Done |
| | | |
| This should be all that is to do. Now when an anon | | This should be all that is to do. Now when an anon |
| ymous user wants to reply to a thread he should be | | ymous user wants to reply to a thread he should be |
| required to enter a valid captcha. | | required to enter a valid captcha. |