| - 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:
| n | - optional settings (showing default settings):
|
| - CAPTCHA_BGCOLOR, CAPTCHA_FGCOLOR: defines op | | - CAPTCHA_BGCOLOR = (39, 36, 81) # background |
| tionally the background and foreground color of th | | color for captcha images
|
| e captcha
| | |
| | | - CAPTCHA_FGCOLOR = (153, 204, 0) # foreground |
| | | color for captcha images
|
| - CAPTCHA_BORDER: the border in pixels around | | - CAPTCHA_BORDER = 2 # border width in pixels |
| the text | | around captcha text |
| - 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. |