<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -36,6 +36,19 @@ Protecting a login form, i.e rate limit on IP address and attempted username:
         # ...
         return HttpResponse('...')
 
+You can also use it directly in urls.py. Here's how you would use it with 
+the login() view function provided by Django:
+    
+    from ratelimitcache import ratelimit_post
+    from django.contrib.auth.views import login
+    
+    urlpatterns = patterns('',
+        #...
+        (r'^login/$', ratelimit_post(
+            minutes = 3, requests = 10, key_field = 'username'
+        )(login)),
+    )
+
 Custom behaviour, e.g. logging when the rate limit condition fails:
     
     from ratelimitcache import ratelimit</diff>
      <filename>readme.txt</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2683884a2c8192e98e5602725370c759fc167810</id>
    </parent>
  </parents>
  <author>
    <name>Simon Willison</name>
    <email>simon@simonwillison.net</email>
  </author>
  <url>http://github.com/simonw/ratelimitcache/commit/864b2aa8d275a8a3e662e9effbf00b20acb1ff41</url>
  <id>864b2aa8d275a8a3e662e9effbf00b20acb1ff41</id>
  <committed-date>2009-01-07T15:06:17-08:00</committed-date>
  <authored-date>2009-01-07T15:06:17-08:00</authored-date>
  <message>Added a note to the readme.txt about using the decorator within your urls.py</message>
  <tree>fa74b3e22f459acc16b520daf4e405317d456780</tree>
  <committer>
    <name>Simon Willison</name>
    <email>simon@simonwillison.net</email>
  </committer>
</commit>
