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 | Next Change -->

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

2008-06-14 23:21:16 by Leeland
2008-06-14 23:22:38 by Leeland
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
22- optional settings (showing default settings):22- optional settings (showing default settings):
t23    - CAPTCHA_BGCOLOR = (39, 36, 81)  # backgroundt23    - CAPTCHA_BGCOLOR = (39, 36, 81)  # background
> color for captcha images> color RGB tuple for captcha images
24    - CAPTCHA_FGCOLOR = (153, 204, 0) # foreground24    - CAPTCHA_FGCOLOR = (153, 204, 0) # foreground
> color 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
26- Make sure that in your project's urlconf is an e26- 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),
2727
2828
29## Done29## Done


Powered by Sphene Community Tools