Skip to content

Commit

Permalink
Use django-ratelimit-backend.
Browse files Browse the repository at this point in the history
  • Loading branch information
jezdez committed Sep 15, 2014
1 parent 6d01e42 commit 013a7cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cab/urls/accounts.py
@@ -1,13 +1,16 @@
from django.conf.urls import url, patterns, include

from ratelimitbackend.views import login
from cab.views import accounts

urlpatterns = patterns('',
url(r'^',
include('django.contrib.auth.urls')),
url(r'^register/$',
accounts.CabRegistrationView.as_view(),
name='registration_register'),
url(r'^login/$',
login,
{'template_name': 'registration/login.html'},
name='auth_login'),
url(r'^',
include('registration.backends.default.urls')),
)
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -126,6 +126,7 @@ def find_package_data(where='.', package='',
'django-taggit==0.10',
'django-comments-spamfighter>=0.4',
'django-simple-captcha>=0.4.0',
'django-ratelimit-backend==0.6.2',
]

setup(
Expand Down

0 comments on commit 013a7cb

Please sign in to comment.