Commit e9ce3b88 authored by Joseph Wilhelm's avatar Joseph Wilhelm

Merge branch 'master' of labs.lyrical.net:jwilhelm/django-botscout

parents c664d980 cf6dc20b
......@@ -12,8 +12,10 @@ BOTSCOUT_API_URL = 'http://botscout.com/test/'
BOTSCOUT_CACHE_TIMEOUT = 1800
BOTSCOUT_NETWORK_TIMEOUT = 5
```
Additionally, you can set the following variables on individual forms to alter
their behavior:
```python
BOTSCOUT_NAME_FIELD = 'name'
BOTSCOUT_EMAIL_FIELD = 'email'
......@@ -24,6 +26,7 @@ BOTSCOUT_ERROR_MESSAGE = 'This request was matched in the BotScout database'
Basic Usage
-----------
In forms.py:
```python
from botscout import BotScoutForm
from django import forms
......@@ -33,7 +36,9 @@ class ContactForm(BotScoutForm, forms.Form):
name = forms.CharField('Name')
email = forms.EmailField('Email')
```
In views.py:
```python
from .forms import ContactForm
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment