Sphene Community Tools

Community

Copyright © 2007-2018 by Herbert Poul

You are not logged in.
Login
Register

Change Language:



AddThis Social Bookmark Button

A Django site.

Powered by Sphene Community Tools

Captcha

Captcha

Back to Snip <-- Previous Change

Diff Summary
Title
Date 2008-06-14 23:22:38 2008-06-20 07:33:21
Editor Leeland Leeland
Tags

2008-06-14 23:22:38 by Leeland
2008-06-20 07:33:21 by Leeland
17- Add the parent directory of djaptcha to your pyt17- 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
18- Add 'djaptcha' to your INSTALLED_APPS setting.18- Add 'djaptcha' to your INSTALLED_APPS setting.
19- additional settings variables:19- additional settings variables:
20    - FONT_PATH = '/usr/share/fonts/ttf-bitstream-20    - FONT_PATH = '/usr/share/fonts/ttf-bitstream-
>vera/\VeraBd.ttf'>vera/\VeraBd.ttf'
21    - FONT_SIZE = 1621    - FONT_SIZE = 16
n22- optional settings (showing default settings):n22- optional settings for settings_local.py (showing
 > default settings):
23    - CAPTCHA_BGCOLOR = (39, 36, 81)  # background23    - CAPTCHA_BGCOLOR = (39, 36, 81)  # background
> color RGB tuple for captcha images> color RGB tuple for captcha images
24    - CAPTCHA_FGCOLOR = (153, 204, 0) # foreground24    - CAPTCHA_FGCOLOR = (153, 204, 0) # foreground
> color RGB tuple for captcha images> color RGB tuple for captcha images
25    - CAPTCHA_BORDER = 2 # border width in pixels 25    - CAPTCHA_BORDER = 2 # border width in pixels 
>around captcha text>around captcha text
nn26    - SPH_SETTINGS['community_register_require_cap
 >tcha'] = False # require captch for new registrati
 >ons
26- Make sure that in your project's urlconf is an e27- 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),
t27 t
2828
29## Done29## Done
3030
31This should be all that is to do. Now when an anon31This 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.


Powered by Sphene Community Tools