|
Revision 1, 0.9 KB
(checked in by 235, 4 years ago)
|
|
re-comminting after curios incident with same filenames in upper and lower case`
|
| Line | |
|---|
| 1 | Prerequisites: |
|---|
| 2 | |
|---|
| 3 | * Django >= 0.96 and using newforms |
|---|
| 4 | |
|---|
| 5 | * PIL (Python Imaging Library) |
|---|
| 6 | |
|---|
| 7 | * At least one TrueType font installed |
|---|
| 8 | |
|---|
| 9 | To use Captcha: |
|---|
| 10 | |
|---|
| 11 | * Expand the archive (you've probably alreaedy done this) |
|---|
| 12 | |
|---|
| 13 | * Put the resulting directory in a subdirectory of your Django project |
|---|
| 14 | |
|---|
| 15 | * Modify the settings.py file in the directory, specifically you will probably |
|---|
| 16 | need to specify a font and the base_url that you intend to use for Captcha |
|---|
| 17 | |
|---|
| 18 | * Add Captcha to your installed apps and include its urls file in yours. |
|---|
| 19 | |
|---|
| 20 | * Syncdb |
|---|
| 21 | |
|---|
| 22 | * Make any form that you want Captcha'd extend CaptchaForm |
|---|
| 23 | |
|---|
| 24 | Caveats: |
|---|
| 25 | |
|---|
| 26 | * I still haven't tested this other than using form_for_model(form=CaptchaForm) |
|---|
| 27 | |
|---|
| 28 | * I'm new to Django/Python, so I'm sure I have some dumb things in here |
|---|
| 29 | |
|---|
| 30 | Copyright (c) 2007 Brandon Low |
|---|
| 31 | Licensed under the GPL v2 |
|---|
| 32 | |
|---|
| 33 | With ideas from http://code.google.com/p/django-captcha/ |
|---|
| 34 | |
|---|
| 35 | See COPYING for license details |
|---|